Exemplo n.º 1
0
    "height": 300,
    "dialog-info-labels": CONTRAST_INFO_LABELS + LISTS_BASIC_INFO_LABELS
})

bright_page = win_def.add_page(_("Brightness"))
bright_section = bright_page.add_section(_("Brightness effects"))
bright_section.add_widget("list", "brightness_list", {
    "columns": BRIGHTNESS_COLUMNS + ALL_TRIGGER_OPTIONS,
    "height": 300,
    "dialog-info-labels": BRIGHTNESS_INFO_LABELS + LISTS_BASIC_INFO_LABELS
})

other_page = win_def.add_page(_("Other"))
other_section = other_page.add_section(_("Global keybindings"))
other_section.add_widget("list", "global_keybindings", {
    "columns": KEYBINDINGS_COLUMNS
})

other_section = other_page.add_section(_("Miscellaneous"))
other_section.add_widget("switch", "apply_cinnamon_injections", {
    "description": _("Windows clones inherit effects"),
    "tooltip": _("Window thumbnails generated by the [[Alt]] + [[Tab]] switchers and workspace previews will inherit the effect of the real windows.")
})

other_page.add_section(get_debugging_section(XLET_TYPE, XLET_UUID))


if __name__ == "__main__":
    sys.argv.extend((f'--xlet-uuid={XLET_UUID}', f'--xlet-type={XLET_TYPE}'))
    sys.exit(cli(win_def))
Exemplo n.º 2
0
        "units":
        _("pixels")
    })

misc_page = win_def.add_page(_("Miscellaneous"))
misc_section = misc_page.add_section(_("Credentials"))
misc_section.add_widget(
    "textview", "yandex_api_keys", {
        "height":
        150,
        "description":
        _("Yandex API keys"),
        "tooltip":
        _("Enter one API key per line.\nRead the help file found inside this extension folder to know how to get free Yandex API keys."
          )
    })

misc_section = misc_page.add_section(
    get_debugging_section(XLET_TYPE, XLET_UUID))
misc_section.add_widget(
    "switch", "loggin_save_history_indented", {
        "description":
        _("Indent translation history data"),
        "tooltip":
        _("It allows to save the translation history data with indentation.")
    })

if __name__ == "__main__":
    sys.argv.extend((f'--xlet-uuid={XLET_UUID}', f'--xlet-type={XLET_TYPE}'))
    sys.exit(cli(win_def))