Last active
March 15, 2022 13:02
-
-
Save pineapplemachine/454eacec21835fb61481b180d8d087d3 to your computer and use it in GitHub Desktop.
Light edit of the "dracula.qss" style file included with Mod Organizer v2.2.2.1 to increase font size.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Drop background color of most widgets | |
*/ | |
/* | |
* This is a light edit of the "dracula.qss" style file included with | |
* Mod Organizer v2.2.2.1. | |
* | |
* It increases the font size as well as the height of rows in lists and | |
* tables and such, making the interface much more readable on my display. | |
* | |
* To use this style with Mod Organizer, click the wrench-and-screwdriver | |
* settings icon in the top of the window. In the settings window that | |
* appears, make sure that you are in the "General" tab. Click the | |
* "Explore..." button next to the "Style" option. This will open a | |
* file explorer window in the program's styles directory. Save this | |
* qss style file to this directory. Then return to the Mod Organizer | |
* program and close the settings window. Open it again by clicking | |
* the wrench-and-screwdriver icon again. Now click the dropdown arrow | |
* next to the "Style" text and find this "dracula-bigger-fonts" option | |
* in the list and select it. Click the "OK" button in the settings | |
* window to apply the style change. Now you're all done! | |
* | |
* Search for "* new *" in this file to find the changes I made. | |
* It should be possible to copy these changes to one of the other themes | |
* if you'd like to use that one but with the larger font size. | |
* | |
* Here is a screenshot of Mod Organizer v2.2.2.1 with this style in use: | |
* http://files.pineapplemachine.com/public/images/2020-07-26%20Mod%20Organizer%20Dracula%20Bigger%20Font.png | |
*/ | |
QWidget, QStackedWidget, | |
QScrollArea, QAbstractScrollArea { | |
background-color: #3c3f41; | |
color: #bbbbbb; | |
/* new */ font-size: 16px; | |
} | |
QWidget:disabled { | |
color: #808080; | |
} | |
QApplication, | |
QMainWindow, QFrame, QDockWidget, QDialog, QFileDialog, QMessageBox, | |
QRadioButton, | |
QGroupBox::title, | |
QMenuBar, QMenu, QMenu::item, | |
QComboBox QAbstractItemView, | |
QTreeView, QListWidget, QListView, QTableWidget, QTableView, | |
QTextEdit, QTextBrowser { | |
background-color: #3c3f41; | |
} | |
/* new */ QListView::item, QListWidget::item, | |
QTableView::item, QTreeView::item { | |
padding: 4px 0; | |
} | |
QLabel, QTabBar::tab, QMenuBar::item, | |
QCheckBox, QGroupBox { | |
background-color: transparent; | |
selection-color: #bbbbbb; | |
} | |
LinkLabel { | |
qproperty-linkColor: #3399FF; | |
} | |
/* | |
* GroupBox and CheckBox | |
*/ | |
QGroupBox { | |
border-top: 1px solid #2d2d2d; | |
margin-top: 0.5em; | |
} | |
QGroupBox::title { | |
subcontrol-origin: margin; | |
subcontrol-position: top left; | |
padding: 0 3px; | |
} | |
QCheckBox::indicator, | |
QGroupBox::indicator { | |
width: 13px; | |
height: 13px; | |
} | |
QCheckBox::indicator:indeterminate:hover, | |
QGroupBox::indicator:indeterminate:hover { | |
background-color: #2222bb; | |
} | |
QCheckBox::indicator:indeterminate:pressed, | |
QGroupBox::indicator:indeterminate:pressed { | |
background-color: #22bb22; | |
} | |
QLineEdit, QAbstractSpinBox, QComboBox, QPushButton { | |
background-color: #45494a; | |
background-origin: border; | |
border: 1px solid #646464; | |
color: #bbbbbb; | |
padding: 0.1em 0.5em 0.1em 0.5em; | |
selection-background-color: #4b6eaf; | |
} | |
:read-only { | |
background-color: transparent; | |
border: 1px solid #535353; | |
color: #999999; | |
} | |
:no-frame { | |
border-width: 0; | |
} | |
/* | |
* PushButton | |
* | |
*/ | |
QPushButton { | |
outline: 0; | |
} | |
QPushButton { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #515658, stop: 1.0 #44494b); | |
border: 1px solid #5f6161; | |
border-radius: 2px; | |
margin: 1px; | |
padding: 0.2em 0.8em 0.2em 0.8em; | |
} | |
QPushButton:hover { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #64686b, stop:1 #494c4e); | |
} | |
QPushButton:pressed { | |
border-style: inset; | |
} | |
QPushButton:default { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #344a64, stop: 1.0 #263549); | |
} | |
QPushButton:disabled { | |
background-color: transparent; | |
color: #999999; | |
} | |
QPushButton:open { | |
background-color: #4b6eaf; | |
} | |
QPushButton::menu-indicator { | |
subcontrol-origin: padding; | |
subcontrol-position: bottom right; | |
} | |
/* | |
* ComboBox | |
*/ | |
QComboBox { | |
border-radius: 2px; | |
min-width: 3em; | |
padding: 0px 1px 2px 3px; | |
} | |
QComboBox:!editable { | |
background-color: rgba(255, 255, 255, 0.05); | |
} | |
QComboBox::drop-down { | |
border-left: 1px solid #646464; | |
} | |
QComboBox::down-arrow | |
{ | |
image: url(:/stylesheet/combobox-down.png); | |
} | |
QComboBox QAbstractItemView { | |
border: 1px solid red; | |
selection-background-color: #d2d2d2; | |
selection-color: #404040; | |
show-decoration-selected: 1; | |
} | |
/* | |
* TabWidget and TabBar | |
*/ | |
QTabWidget::pane { | |
background-color: transparent; | |
border: 1px solid #323232; | |
} | |
QTabWidget::pane:top { | |
top: -1px; | |
} | |
QTabWidget::pane:right { | |
right: -1px; | |
} | |
QTabWidget::pane:bottom { | |
bottom: -1px; | |
} | |
QTabWidget::pane:left { | |
left: -1px; | |
} | |
QTabBar::tab { | |
border: 1px solid #292b2d; | |
padding: 0.2em 0.8em 0.2em 0.8em; | |
} | |
QTabBar::tab:top { | |
border-top-left-radius: 4px; | |
border-top-right-radius: 4px; | |
} | |
QTabBar::tab:right { | |
border-top-right-radius: 4px; | |
border-bottom-right-radius: 4px; | |
} | |
QTabBar::tab:bottom { | |
border-bottom-left-radius: 4px; | |
border-bottom-right-radius: 4px; | |
} | |
QTabBar::tab:left { | |
border-top-left-radius: 4px; | |
border-bottom-left-radius: 4px; | |
} | |
QTabBar::tab:selected { | |
background-color: #41516d; | |
} | |
QTabBar::tab:top:selected { | |
border-bottom-color: #41516d; | |
} | |
QTabBar::tab:right:selected { | |
border-left-color: #41516d; | |
} | |
QTabBar::tab:bottom:selected { | |
border-top-color: #41516d; | |
} | |
QTabBar::tab:left:selected { | |
border-right-color: #41516d; | |
} | |
QTabBar::tab:top:!selected { | |
margin-top: 2px; | |
} | |
QTabBar::tab:right:!selected { | |
margin-right: 2px; | |
} | |
QTabBar::tab:bottom:!selected { | |
margin-bottom: 2px; | |
} | |
QTabBar::tab:left:!selected { | |
margin-left: 2px; | |
} | |
/* | |
* Table | |
*/ | |
QTableWidget, | |
QTableView { | |
border: 1px solid #323232; | |
alternate-background-color: #414547; | |
} | |
QHeaderView::section { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #54585b, stop:1 #393c3e); | |
color: #bbbbbb; | |
padding: 1px 2px 1px 4px; | |
border: 1px solid #323232; | |
border-top-width: 0; | |
border-left-color: #5e6163; | |
border-right-color: #2a2c2d; | |
} | |
QHeaderView::section:hover { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #64686b, stop:1 #494c4e); | |
border-bottom-color: #424242; | |
} | |
QHeaderView::section:first { | |
border-left-width: 0; | |
} | |
QHeaderView::section:last { | |
border-right-width: 0; | |
} | |
/* | |
* Menu and MenuBar | |
*/ | |
QMenuBar { | |
border-bottom: 2px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #282828, stop:1 #555555); | |
} | |
QMenuBar::item:pressed { | |
background-color: #4b6eaf; | |
} | |
QMenuBar::item:selected:!pressed { | |
background-color: #585b5d; | |
} | |
QMenu { | |
border: 1px solid #2d2d2d; | |
} | |
QMenu::item:disabled { | |
color: #999999; | |
} | |
QMenu::item:selected { | |
background-color: #4b6eaf; | |
} | |
QMenu::icon { | |
border: 0px solid transparent; | |
background-color: transparent; | |
} | |
QMenu::icon:checked { | |
background-color: blue; | |
border: 1px inset red; | |
position: absolute; | |
top: 1px; | |
right: 1px; | |
bottom: 1px; | |
left: 1px; | |
} | |
QMenu::separator { | |
height: 2px; | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #282a2b, stop:1 #45484b); | |
margin: 0 1px; | |
} | |
/* | |
* Scroll bar | |
*/ | |
QScrollBar:vertical { | |
background-color: transparent; | |
margin: 0; | |
height: 1px; | |
width: 12px; | |
} | |
QScrollBar:horizontal { | |
background-color: transparent; | |
margin: 0; | |
height: 12px; | |
width: 1px; | |
} | |
QScrollBar::handle { | |
border: 1px solid #555555; | |
border-radius: 4px; | |
margin: 1px; | |
} | |
QScrollBar::handle:vertical { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop:0 #5c5c5c, stop:1 #515151); | |
min-height: 20px; | |
min-width: 8px; | |
} | |
QScrollBar::handle:vertical:hover { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop:0 #666666, stop:1 #5b5b5b); | |
} | |
QScrollBar::handle:horizontal { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #5c5c5c, stop:1 #515151); | |
min-height: 8px; | |
min-width: 20px; | |
} | |
QScrollBar::handle:horizontal:hover { | |
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #666666, stop:1 #5b5b5b); | |
} | |
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical, | |
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { | |
background-color: transparent; | |
} | |
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical, | |
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { | |
height: 0; | |
width: 0; | |
} | |
/* | |
* QAbstractItemView modifications | |
*/ | |
QAbstractItemView { | |
border: 1px solid #323232; | |
selection-color: #bbbbbb; | |
selection-background-color: #4b6eaf; | |
alternate-background-color: #414547; | |
show-decoration-selected: 1; | |
outline: 0; | |
} | |
QListWidgetItem, | |
QTreeWidgetItem { | |
background-color: red; | |
color: yellow; | |
border: 1px solid purple; | |
} | |
QAbstractItemView::text { | |
color: #bbbbbb; | |
} | |
QTreeView::branch:hover, | |
QAbstractItemView::item:hover { | |
background-color: rgba(255, 255, 255, 0.05); | |
} | |
QTreeView::branch:selected:active, | |
QAbstractItemView::item:selected { | |
background-color: #4b6eaf; | |
} | |
QTreeView::branch:has-siblings:adjoins-item, | |
QTreeView::branch:has-siblings:!adjoins-item, | |
QTreeView::branch:!has-children:!has-siblings:adjoins-item { | |
border-image: none; | |
} | |
QTreeView::branch:has-children:!has-siblings:closed, | |
QTreeView::branch:closed:has-children:has-siblings { | |
border-image: none; | |
image: url(:/stylesheet/branch-closed.png); | |
} | |
QTreeView::branch:open:has-children:!has-siblings, | |
QTreeView::branch:open:has-children:has-siblings { | |
border-image: none; | |
image: url(:/stylesheet/branch-open.png); | |
} | |
/* | |
* Tool bar | |
*/ | |
QToolBar { | |
border-width: 0; | |
} | |
/* | |
* ToolTip | |
*/ | |
QToolTip, QTipLabel { | |
border: 1px solid #9a9a66; | |
border-radius: 3px; | |
background: #5c5c42; | |
color: #bbbbbb; | |
margin: 0; | |
padding: 0; | |
} | |
SaveGameInfoWidget { | |
background-color: qlineargradient(x1: 0, y1: 0.6, x2: 0, y2: 1, stop: 0 rgba(52,74,100,100%), stop: 1.0 rgba(38,53,73,10%)); | |
} | |
/* | |
* Downloads | |
*/ | |
DownloadListWidget QLabel#installLabel { | |
color: none; | |
} | |
DownloadListWidget[downloadView=standard]::item { | |
padding: 16px; | |
} | |
DownloadListWidget[downloadView=compact]::item { | |
padding: 4px; | |
} | |
DownloadListWidget::item:hover { | |
padding: 0px; | |
} | |
DownloadListWidget::item:selected { | |
padding: 0px; | |
} | |
QStatusBar::item {border: None;} | |
QProgressBar | |
{ | |
border: 2px solid grey; | |
border-radius: 5px; | |
text-align: center; | |
} | |
QProgressBar::chunk | |
{ | |
background-color: #427683; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment