forked from Boria138/PortProtonQt
styles for virtual keyboard
This commit is contained in:
@@ -25,6 +25,7 @@ color_e = "#404554"
|
|||||||
color_f = "#ffffff"
|
color_f = "#ffffff"
|
||||||
color_g = "rgba(0, 0, 0, 0)"
|
color_g = "rgba(0, 0, 0, 0)"
|
||||||
color_h = "transparent"
|
color_h = "transparent"
|
||||||
|
color_i = "rgba(40, 42, 51, 0.9)"
|
||||||
|
|
||||||
GAME_CARD_ANIMATION = {
|
GAME_CARD_ANIMATION = {
|
||||||
# Тип анимации при входе и выходе на детальную страницу
|
# Тип анимации при входе и выходе на детальную страницу
|
||||||
@@ -217,54 +218,40 @@ CONTEXT_MENU_STYLE = f"""
|
|||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VIRTUAL_KEYBOARD_STYLE = """
|
VIRTUAL_KEYBOARD_STYLE = f"""
|
||||||
VirtualKeyboard {
|
QWidget {{
|
||||||
background-color: rgba(30, 30, 30, 200);
|
background: {color_i};
|
||||||
border-radius: 0px;
|
}}
|
||||||
border: none;
|
QPushButton {{
|
||||||
}
|
|
||||||
QPushButton {
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border: 1px solid #555;
|
border: {border_a} {color_h};
|
||||||
border-top-color: #666;
|
border-radius: {border_radius_a};
|
||||||
border-left-color: #666;
|
|
||||||
border-radius: 3px;
|
|
||||||
min-width: 30px;
|
min-width: 30px;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
padding: 4px;
|
padding: 5px;
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #505050, stop:1 #404040);
|
background-color: {color_c};
|
||||||
color: #e0e0e0;
|
color: {color_f};
|
||||||
}
|
}}
|
||||||
QPushButton:hover {
|
QPushButton:hover {{
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #505050);
|
background-color: {color_a};
|
||||||
border: 1px solid #666;
|
border: {border_b} {color_a};
|
||||||
border-top-color: #777;
|
}}
|
||||||
border-left-color: #777;
|
QPushButton:focus {{
|
||||||
}
|
border: {border_b} {color_a};
|
||||||
QPushButton:focus {
|
background-color: {color_a};
|
||||||
border: 2px solid #4a90e2;
|
}}
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #5a5a5a, stop:1 #454545);
|
QPushButton:pressed {{
|
||||||
}
|
background-color: {color_c};
|
||||||
QPushButton:pressed {
|
border: {border_a} {color_h};
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3a3a3a, stop:1 #303030);
|
}}
|
||||||
border: 1px solid #444;
|
QPushButton[checked="true"] {{
|
||||||
border-bottom-color: #555;
|
background-color: {color_a};
|
||||||
border-right-color: #555;
|
color: {color_f};
|
||||||
padding-top: 5px;
|
border: {border_a} {color_h};
|
||||||
padding-bottom: 3px;
|
}}
|
||||||
padding-left: 5px;
|
QPushButton[checked="true"]:focus {{
|
||||||
padding-right: 3px;
|
border: {border_b} {color_f};
|
||||||
}
|
}}
|
||||||
QPushButton[checked="true"] {
|
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4a90e2, stop:1 #3a7ad2);
|
|
||||||
color: white;
|
|
||||||
border: 1px solid #2a6ac2;
|
|
||||||
border-top-color: #5aa0f2;
|
|
||||||
border-left-color: #5aa0f2;
|
|
||||||
}
|
|
||||||
QPushButton[checked="true"]:focus {
|
|
||||||
border: 2px solid #6aa3f5;
|
|
||||||
}
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ГЛОБАЛЬНЫЙ СТИЛЬ ДЛЯ ОКНА (ФОН), ЛЭЙБЛОВ, КНОПОК
|
# ГЛОБАЛЬНЫЙ СТИЛЬ ДЛЯ ОКНА (ФОН), ЛЭЙБЛОВ, КНОПОК
|
||||||
|
|||||||
Reference in New Issue
Block a user