1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-31 09:44:50 +01:00

Change darwin to macos

This commit is contained in:
Jonas Kvinge 2018-10-20 22:15:32 +02:00
parent 2ff971878d
commit 0c0a8d70f3
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,6 @@
#playlist { #playlist {
background-color: %palette-base; background-color: %palette-base;
alternate-background-color: %palette-alternate-base; alternate-background-color: %palette-alternate-base;
} }
#playlist[default_background_enabled = "true"] { #playlist[default_background_enabled = "true"] {
@ -45,11 +44,11 @@ QToolButton:pressed[popupMode="1"] {
padding-right: 16px; padding-right: 16px;
} }
darwin { macos {
font-size: 11pt; font-size: 11pt;
} }
darwin QMenu { macos QMenu {
font-size: 13pt; font-size: 13pt;
} }

View File

@ -44,6 +44,8 @@ void StyleSheetLoader::SetStyleSheet(QWidget *widget, const QString &filename) {
void StyleSheetLoader::UpdateStyleSheet(QWidget *widget) { void StyleSheetLoader::UpdateStyleSheet(QWidget *widget) {
if (!widget || !filenames_.contains(widget)) return;
QString filename(filenames_[widget]); QString filename(filenames_[widget]);
// Load the file // Load the file
@ -88,7 +90,7 @@ void StyleSheetLoader::UpdateStyleSheet(QWidget *widget) {
ReplaceColor(&contents, "LinkVisited", p, QPalette::LinkVisited); ReplaceColor(&contents, "LinkVisited", p, QPalette::LinkVisited);
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
contents.replace("darwin", "*"); contents.replace("macos", "*");
#endif #endif
widget->setStyleSheet(contents); widget->setStyleSheet(contents);