Add customize qss support for theme.
Fix an issue that causes all feature flags will not be added to the launch command regardless of it is enabled. Add some default themes.
This commit is contained in:
1 parent
1754b01230
commit
b7af7e3469
53 files changed
+1319
-130
No files matched your search
@@ -0,0 +1,23 @@
|
||||
QDialog { background: #c0c0c0; }
|
||||
QLabel#dialogTitle {
|
||||
background: #000080;
|
||||
color: #ffffff;
|
||||
padding: 5px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
QLabel#helpText { color: #000000; font-size: 13px; }
|
||||
QLineEdit#codeEdit {
|
||||
min-height: 50px;
|
||||
padding: 0 12px;
|
||||
border: 2px inset #c0c0c0;
|
||||
border-radius: 0;
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
font-size: 25px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
QLabel#errorMessage { padding: 9px; border: 1px solid #800000; color: #800000; font-size: 12px; }
|
||||
QPushButton { min-height: 32px; border: 2px outset #c0c0c0; border-radius: 0; background: #c0c0c0; color: #000000; }
|
||||
QPushButton:pressed { border-style: inset; }
|
||||
@@ -0,0 +1,106 @@
|
||||
/* Classic gray controls, raised buttons and sunken fields. */
|
||||
QWidget {
|
||||
font-family: "Tahoma", "Microsoft Sans Serif", "Segoe UI";
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
QMainWindow, QDialog {
|
||||
background: palette(window);
|
||||
color: palette(window-text);
|
||||
}
|
||||
|
||||
QPushButton, QToolButton {
|
||||
background: palette(button);
|
||||
color: palette(button-text);
|
||||
border: 2px solid;
|
||||
border-top-color: #ffffff;
|
||||
border-left-color: #ffffff;
|
||||
border-bottom-color: #404040;
|
||||
border-right-color: #404040;
|
||||
border-radius: 0;
|
||||
padding: 5px 10px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
QPushButton:pressed, QToolButton:pressed,
|
||||
QPushButton:checked, QToolButton:checked {
|
||||
border-top-color: #404040;
|
||||
border-left-color: #404040;
|
||||
border-bottom-color: #ffffff;
|
||||
border-right-color: #ffffff;
|
||||
background: #b0b0b0;
|
||||
}
|
||||
|
||||
QPushButton:default { border-bottom-color: #000000; border-right-color: #000000; }
|
||||
QPushButton:disabled, QToolButton:disabled { color: #808080; }
|
||||
|
||||
QLineEdit, QPlainTextEdit, QTextEdit, QSpinBox, QDoubleSpinBox,
|
||||
QComboBox, QListView, QTreeView, QTableView {
|
||||
background: palette(base);
|
||||
color: palette(text);
|
||||
border: 2px solid;
|
||||
border-top-color: #808080;
|
||||
border-left-color: #808080;
|
||||
border-bottom-color: #ffffff;
|
||||
border-right-color: #ffffff;
|
||||
border-radius: 0;
|
||||
padding: 3px;
|
||||
selection-background-color: #000080;
|
||||
selection-color: #ffffff;
|
||||
}
|
||||
|
||||
QComboBox { padding-right: 24px; }
|
||||
QComboBox::drop-down {
|
||||
width: 18px;
|
||||
background: #c0c0c0;
|
||||
border: 1px solid;
|
||||
border-top-color: #ffffff;
|
||||
border-left-color: #ffffff;
|
||||
border-bottom-color: #404040;
|
||||
border-right-color: #404040;
|
||||
}
|
||||
QComboBox QAbstractItemView {
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
selection-background-color: #000080;
|
||||
selection-color: #ffffff;
|
||||
}
|
||||
|
||||
QGroupBox {
|
||||
border: 1px solid #808080;
|
||||
border-radius: 0;
|
||||
margin-top: 10px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
QGroupBox::title { subcontrol-origin: margin; left: 8px; padding: 0 3px; }
|
||||
|
||||
QProgressBar {
|
||||
background: #c0c0c0;
|
||||
border: 2px solid;
|
||||
border-top-color: #808080;
|
||||
border-left-color: #808080;
|
||||
border-bottom-color: #ffffff;
|
||||
border-right-color: #ffffff;
|
||||
border-radius: 0;
|
||||
text-align: center;
|
||||
color: #000000;
|
||||
}
|
||||
QProgressBar::chunk { background: #000080; width: 8px; margin: 1px; }
|
||||
|
||||
QTabWidget::pane { border: 2px outset #c0c0c0; }
|
||||
QTabBar::tab {
|
||||
background: #c0c0c0;
|
||||
color: #000000;
|
||||
border: 2px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
padding: 5px 12px;
|
||||
}
|
||||
QTabBar::tab:selected { border-bottom-color: #c0c0c0; }
|
||||
|
||||
QLabel#dev_info_box { font-size: 20pt; font-weight: bold; }
|
||||
QLabel#dev_info_message { font-size: 10pt; }
|
||||
QLabel#version_label { font-weight: bold; }
|
||||
|
||||
QMessageBox { background: #c0c0c0; }
|
||||
QMessageBox QLabel { color: #000000; background: transparent; }
|
||||
QMessageBox QPushButton { min-width: 72px; }
|
||||
@@ -0,0 +1,24 @@
|
||||
QLabel#manageTitle { font-size: 20px; font-weight: bold; padding: 4px; }
|
||||
QScrollArea#manageProfileListScroll, QScrollArea#manageProfileOptionsScroll {
|
||||
background: #ffffff;
|
||||
border: 2px inset #c0c0c0;
|
||||
border-radius: 0;
|
||||
}
|
||||
QPushButton#manageProfileItem {
|
||||
/* Override the generic button sizing; 62px + 2px border = 64px. */
|
||||
min-height: 62px;
|
||||
padding: 0;
|
||||
background: #c0c0c0;
|
||||
color: #000000;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 0;
|
||||
text-align: left;
|
||||
}
|
||||
QPushButton#manageProfileItem:hover { background: #dfdfdf; }
|
||||
QPushButton#manageProfileItem:checked { background: #000080; color: #ffffff; }
|
||||
QPushButton#manageProfileItem QLabel[itemChecked="true"] { color: #ffffff; background: transparent; }
|
||||
QLabel#itemName { font-size: 14px; font-weight: bold; }
|
||||
QLabel#itemVersion { color: #404040; font-size: 12px; }
|
||||
QFrame#profileEditor { background: #c0c0c0; }
|
||||
QPushButton#saveProfileButton { min-width: 130px; font-weight: bold; }
|
||||
QPushButton#dangerButton { color: #800000; }
|
||||
@@ -0,0 +1,23 @@
|
||||
QMainWindow { background: #c0c0c0; }
|
||||
QLabel { color: #000000; }
|
||||
QPlainTextEdit {
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
font-family: "Courier New", monospace;
|
||||
font-size: 10pt;
|
||||
border: 2px inset #c0c0c0;
|
||||
border-radius: 0;
|
||||
selection-background-color: #000080;
|
||||
selection-color: #ffffff;
|
||||
}
|
||||
QPushButton {
|
||||
background: #c0c0c0;
|
||||
color: #000000;
|
||||
border: 2px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
QPushButton:pressed { border-style: inset; }
|
||||
QPushButton:disabled { color: #808080; }
|
||||
QScrollBar { background: #dfdfdf; }
|
||||
QScrollBar::handle { background: #c0c0c0; border: 2px outset #c0c0c0; }
|
||||
@@ -0,0 +1,27 @@
|
||||
QFrame#profileButton {
|
||||
background: #c0c0c0;
|
||||
border: 2px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
}
|
||||
QFrame#profileButton:hover { background: #dfdfdf; }
|
||||
QLabel#profileName, QLabel#itemName { color: #000000; font-size: 14px; font-weight: bold; }
|
||||
QLabel#profileVersion, QLabel#itemVersion { color: #404040; font-size: 12px; }
|
||||
QLabel#profileArrow { background: transparent; font-size: 18px; }
|
||||
QLabel#launchStatus { font-size: 12px; font-weight: bold; }
|
||||
QFrame#profilePopup { background: #c0c0c0; border: 2px outset #c0c0c0; border-radius: 0; }
|
||||
QWidget#profileListContent { background: #c0c0c0; }
|
||||
QPushButton#profileItem {
|
||||
/* Override the generic button sizing; 60px + 2px border = 62px. */
|
||||
min-height: 60px;
|
||||
padding: 0;
|
||||
background: #c0c0c0;
|
||||
border: 2px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
text-align: left;
|
||||
}
|
||||
QPushButton#profileItem:hover { background: #000080; }
|
||||
QPushButton#profileItem QLabel[itemHovered="true"] { color: #ffffff; background: transparent; }
|
||||
QPushButton#launchButton { min-width: 150px; font-size: 14px; font-weight: bold; }
|
||||
QFrame#profileFrame { background: #008080; border: 2px inset #c0c0c0; border-radius: 0; }
|
||||
QFrame#header { background: #000080; border: 0; }
|
||||
QLabel#headerLabel { color: #ffffff; background: transparent; font-size: 18px; font-weight: bold; }
|
||||
@@ -0,0 +1,36 @@
|
||||
QWidget#settingsPage, QWidget#settingsMainPage, QWidget#settingsScrollContent {
|
||||
background: #c0c0c0;
|
||||
}
|
||||
QScrollArea#settingsScrollArea { border: none; background: #c0c0c0; }
|
||||
QScrollArea#settingsScrollArea > QWidget > QWidget { background: #c0c0c0; }
|
||||
QLabel#settingsPageTitle, QLabel#settingsSubPageTitle {
|
||||
background: #000080;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
padding: 5px;
|
||||
}
|
||||
QPushButton#settingsItem {
|
||||
min-height: 68px;
|
||||
background: #c0c0c0;
|
||||
border: 2px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
text-align: left;
|
||||
}
|
||||
QPushButton#settingsItem:pressed { border-style: inset; }
|
||||
QLabel#settingsItemTitle { color: #000000; font-size: 13px; font-weight: bold; }
|
||||
QLabel#settingsItemDescription, QLabel#settingsHelpText { color: #404040; font-size: 12px; }
|
||||
QPushButton#settingsBackButton { border-radius: 0; font-size: 20px; }
|
||||
QLabel#settingsBrand { font-size: 20px; font-weight: bold; }
|
||||
QLabel#settingsVersion { font-size: 12px; }
|
||||
QPlainTextEdit#settingsDescription { font-size: 13px; }
|
||||
QWidget#settingsPage QComboBox {
|
||||
min-height: 22px;
|
||||
padding: 3px 24px 3px 5px;
|
||||
border: 2px inset #c0c0c0;
|
||||
border-radius: 0;
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
selection-background-color: #000080;
|
||||
selection-color: #ffffff;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
QToolBar {
|
||||
background: #c0c0c0;
|
||||
border: 2px outset #c0c0c0;
|
||||
spacing: 3px;
|
||||
padding: 2px;
|
||||
}
|
||||
QToolBar QToolButton, QToolBar QPushButton {
|
||||
background: #c0c0c0;
|
||||
color: #000000;
|
||||
border: 2px solid;
|
||||
border-top-color: #ffffff;
|
||||
border-left-color: #ffffff;
|
||||
border-bottom-color: #404040;
|
||||
border-right-color: #404040;
|
||||
border-radius: 0;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
QToolBar QToolButton:pressed, QToolBar QToolButton:checked,
|
||||
QToolBar QPushButton:pressed, QToolBar QPushButton:checked {
|
||||
border-top-color: #404040;
|
||||
border-left-color: #404040;
|
||||
border-bottom-color: #ffffff;
|
||||
border-right-color: #ffffff;
|
||||
}
|
||||
QToolBar QToolButton:focus, QToolBar QPushButton:focus { background: #dfdfdf; }
|
||||
QToolBar QToolButton:disabled, QToolBar QPushButton:disabled { color: #808080; }
|
||||
QToolBar::separator { background: #808080; width: 2px; height: 2px; margin: 3px; }
|
||||
QToolBar::handle { background: #c0c0c0; border: 1px outset #ffffff; width: 4px; height: 4px; }
|
||||
Reference in new issue
Block a user