1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-18 19:50:38 +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 {
background-color: %palette-base;
alternate-background-color: %palette-alternate-base;
}
#playlist[default_background_enabled = "true"] {
@ -45,11 +44,11 @@ QToolButton:pressed[popupMode="1"] {
padding-right: 16px;
}
darwin {
macos {
font-size: 11pt;
}
darwin QMenu {
macos QMenu {
font-size: 13pt;
}

View File

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