fix focus styles for buttons, text fields & checkbox
This commit is contained in:
@ -187,7 +187,7 @@ INSTALLED_TAB_TITLE_STYLE = "font-family: 'Play'; font-size: 24px; color: #fffff
|
|||||||
ACTION_BUTTON_STYLE = """
|
ACTION_BUTTON_STYLE = """
|
||||||
QPushButton {
|
QPushButton {
|
||||||
background: #3f424d;
|
background: #3f424d;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.20);
|
border: 2px solid rgba(255, 255, 255, 0.01);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -196,6 +196,7 @@ ACTION_BUTTON_STYLE = """
|
|||||||
}
|
}
|
||||||
QPushButton:hover {
|
QPushButton:hover {
|
||||||
background: #282a33;
|
background: #282a33;
|
||||||
|
border: 2px solid #409EFF;
|
||||||
}
|
}
|
||||||
QPushButton:pressed {
|
QPushButton:pressed {
|
||||||
background: #282a33;
|
background: #282a33;
|
||||||
@ -465,7 +466,7 @@ PARAMS_TITLE_STYLE = "color: #ffffff; font-family: 'Play'; font-size: 16px; padd
|
|||||||
PROXY_INPUT_STYLE = """
|
PROXY_INPUT_STYLE = """
|
||||||
QLineEdit {
|
QLineEdit {
|
||||||
background: #282a33;
|
background: #282a33;
|
||||||
border: 0px solid rgba(255, 255, 255, 0.2);
|
border: 2px solid rgba(255, 255, 255, 0.01);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
@ -473,8 +474,13 @@ PROXY_INPUT_STYLE = """
|
|||||||
font-family: 'Play';
|
font-family: 'Play';
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
QLineEdit:hover {
|
||||||
|
background: #3f424d;
|
||||||
|
border: 2px solid #409EFF;
|
||||||
|
}
|
||||||
QLineEdit:focus {
|
QLineEdit:focus {
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 2px solid #409EFF;
|
||||||
|
background-color: #404554;
|
||||||
}
|
}
|
||||||
QMenu {
|
QMenu {
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
@ -494,7 +500,7 @@ PROXY_INPUT_STYLE = """
|
|||||||
SETTINGS_COMBO_STYLE = f"""
|
SETTINGS_COMBO_STYLE = f"""
|
||||||
QComboBox {{
|
QComboBox {{
|
||||||
background: #3f424d;
|
background: #3f424d;
|
||||||
border: 0px solid rgba(255, 255, 255, 0.2);
|
border: 2px solid rgba(255, 255, 255, 0.01);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
@ -506,14 +512,14 @@ SETTINGS_COMBO_STYLE = f"""
|
|||||||
}}
|
}}
|
||||||
QComboBox:on {{
|
QComboBox:on {{
|
||||||
background: #373a43;
|
background: #373a43;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 1px solid #409EFF;
|
||||||
border-top-left-radius: 10px;
|
border-top-left-radius: 10px;
|
||||||
border-top-right-radius: 10px;
|
border-top-right-radius: 10px;
|
||||||
border-bottom-left-radius: 0px;
|
border-bottom-left-radius: 0px;
|
||||||
border-bottom-right-radius: 0px;
|
border-bottom-right-radius: 0px;
|
||||||
}}
|
}}
|
||||||
QComboBox:hover {{
|
QComboBox:hover {{
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 2px solid #409EFF;
|
||||||
}}
|
}}
|
||||||
/* Состояние фокуса */
|
/* Состояние фокуса */
|
||||||
QComboBox:focus {{
|
QComboBox:focus {{
|
||||||
@ -543,7 +549,7 @@ SETTINGS_COMBO_STYLE = f"""
|
|||||||
/* Список при открытом комбобоксе */
|
/* Список при открытом комбобоксе */
|
||||||
QComboBox QAbstractItemView {{
|
QComboBox QAbstractItemView {{
|
||||||
outline: none;
|
outline: none;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 1px solid #409EFF;
|
||||||
border-top-style: none;
|
border-top-style: none;
|
||||||
}}
|
}}
|
||||||
QListView {{
|
QListView {{
|
||||||
@ -575,16 +581,20 @@ SETTINGS_CHECKBOX_STYLE = """
|
|||||||
QCheckBox::indicator {
|
QCheckBox::indicator {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.01);
|
border: 2px solid rgba(255, 255, 255, 0.01);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #282a33;
|
background: #282a33;
|
||||||
}
|
}
|
||||||
QCheckBox::indicator:hover {
|
QCheckBox::indicator:hover {
|
||||||
background: #3f424d;
|
background: #3f424d;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
border: 2px solid #409EFF;
|
||||||
|
}
|
||||||
|
QCheckBox::indicator:focus {
|
||||||
|
border: 2px solid #409EFF;
|
||||||
}
|
}
|
||||||
QCheckBox::indicator:checked {
|
QCheckBox::indicator:checked {
|
||||||
image: url(./themes/standart/images/icons/check.svg);
|
image: url(./themes/standart/images/icons/check.svg);
|
||||||
|
border: 2px solid #409EFF;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user