add checkboxes styles
This commit is contained in:
@ -970,7 +970,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
# 5. Fullscreen setting for application
|
||||
self.fullscreenCheckBox = QCheckBox(_("Launch Application in Fullscreen"))
|
||||
#self.fullscreenCheckBox.setStyleSheet(self.theme.SETTINGS_CHECKBOX_STYLE)
|
||||
self.fullscreenCheckBox.setStyleSheet(self.theme.SETTINGS_CHECKBOX_STYLE)
|
||||
self.fullscreenCheckBox.setFocusPolicy(Qt.FocusPolicy.StrongFocus)
|
||||
self.fullscreenTitle = QLabel(_("Application Fullscreen Mode:"))
|
||||
self.fullscreenTitle.setStyleSheet(self.theme.PARAMS_TITLE_STYLE)
|
||||
@ -981,6 +981,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
# 6. Automatic fullscreen on gamepad connection
|
||||
self.autoFullscreenGamepadCheckBox = QCheckBox(_("Auto Fullscreen on Gamepad connected"))
|
||||
self.autoFullscreenGamepadCheckBox.setStyleSheet(self.theme.SETTINGS_CHECKBOX_STYLE)
|
||||
self.autoFullscreenGamepadCheckBox.setFocusPolicy(Qt.FocusPolicy.StrongFocus)
|
||||
self.autoFullscreenGamepadTitle = QLabel(_("Auto Fullscreen on Gamepad connected:"))
|
||||
self.autoFullscreenGamepadTitle.setStyleSheet(self.theme.PARAMS_TITLE_STYLE)
|
||||
|
1
portprotonqt/themes/standart/images/icons/check.svg
Normal file
1
portprotonqt/themes/standart/images/icons/check.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m6.5845 11.474-3.2932-3.2932 0.82331-0.82331 2.4699 2.4699 5.3009-5.3009 0.8233 0.82331z" fill="#fff" stroke-width=".014444"/></svg>
|
After Width: | Height: | Size: 260 B |
@ -567,6 +567,26 @@ SETTINGS_COMBO_STYLE = f"""
|
||||
}}
|
||||
"""
|
||||
|
||||
SETTINGS_CHECKBOX_STYLE = """
|
||||
QCheckBox {
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
QCheckBox::indicator {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.01);
|
||||
border-radius: 10px;
|
||||
background: #282a33;
|
||||
}
|
||||
QCheckBox::indicator:hover {
|
||||
background: #3f424d;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
QCheckBox::indicator:checked {
|
||||
image: url(./themes/standart/images/icons/check.svg);
|
||||
}
|
||||
"""
|
||||
|
||||
# ФУНКЦИЯ ДЛЯ ДИНАМИЧЕСКОГО ГРАДИЕНТА (ДЕТАЛИ ИГР)
|
||||
# Функции из этой темы срабатывает всегда вне зависимости от выбранной темы, функции из других тем работают только в этих темах
|
||||
|
Reference in New Issue
Block a user