Skip to content

Commit

Permalink
Hotfix to only use darkmode fix in actual darkmode.
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed May 26, 2020
1 parent 4c0c245 commit 0d9d3c5
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/vorta/views/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from vorta.borg.borg_thread import BorgThread
from vorta.i18n import trans_late
from vorta.models import BackupProfileModel
from vorta.models import BackupProfileModel, SettingsModel
from vorta.utils import borg_compat, get_asset, is_system_tray_available
from vorta.views.utils import get_theme_class

Expand All @@ -33,16 +33,17 @@ def __init__(self, parent=None):

# Temporary fix for QT Darkstyle dropdown issue.
# See https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/200
self.setStyleSheet("""
QComboBox::item:checked {
height: 12px;
border: 1px solid #32414B;
margin-top: 0px;
margin-bottom: 0px;
padding: 4px;
padding-left: 0px;
}
""")
if SettingsModel.get(key='use_dark_theme').value:
self.setStyleSheet("""
QComboBox::item:checked {
height: 12px;
border: 1px solid #32414B;
margin-top: 0px;
margin-bottom: 0px;
padding: 4px;
padding-left: 0px;
}
""")

# Load tab models
self.repoTab = RepoTab(self.repoTabSlot)
Expand Down

0 comments on commit 0d9d3c5

Please sign in to comment.