Пример #1
0
def configure_theme(application):
    application.setStyle(Theme())
    theme_mode = "dark" if is_dark() else "light"
    application.style().load_stylesheet(theme_mode)

    current_font: QFont = application.font()
    current_font.setPointSize(12)
    application.setFont(current_font)
Пример #2
0
def configure_theme(application):
    application.setWindowIcon(QIcon(":/icons/httprider.ico"))

    application.setStyle(Theme())
    theme_mode = "dark" if is_dark() else "light"
    application.style().load_stylesheet(theme_mode)

    font_db = QFontDatabase()
    font_db.addApplicationFont(":/fonts/JetBrainsMono-Regular.ttf")

    current_font: QFont = QFont("JetBrains Mono")
    current_font.setPointSize(12)
    application.setFont(current_font)
Пример #3
0
def http_ex_no_response():
    return QColor("#a51e00") if is_dark() else QColor("#a51e00")
Пример #4
0
def http_ex_server_err():
    return QColor("#a51e00") if is_dark() else QColor("#a51e00")
Пример #5
0
def http_ex_client_err():
    return QColor("#d8a413") if is_dark() else QColor("#d8a413")
Пример #6
0
def http_ex_success():
    return QColor("#01721d") if is_dark() else QColor("#01721d")
Пример #7
0
def api_call_list_status_code_color():
    return Qt.white if is_dark() else Qt.white
Пример #8
0
def api_call_list_disabled_sub_title_color():
    return Qt.darkGray if is_dark() else Qt.gray
Пример #9
0
def api_call_list_disabled_color():
    return QColor("#343434") if is_dark() else QColor("#cfd2d6")
Пример #10
0
def api_call_list_sub_title_color():
    return Qt.white if is_dark() else Qt.black
Пример #11
0
def api_call_list_selected_pen():
    return Qt.white if is_dark() else Qt.black
Пример #12
0
def api_call_list_selected_rect():
    return QColor("#505153") if is_dark() else QColor("#CBD8E1")
Пример #13
0
def api_call_separator_rect():
    return QColor("#404040") if is_dark() else QColor("#404040")
Пример #14
0
def pyg_styles():
    if __pyg_styles:
        return __pyg_styles
    else:
        pyg_theme = "dark" if is_dark() else "light"
        return styles_from_file(":/themes/pyg-{}.css".format(pyg_theme))