From 29b1bbab9dfa44e3b9a790a205199f33cf122d14 Mon Sep 17 00:00:00 2001 From: Donnie Date: Wed, 24 Jun 2020 18:13:20 -0400 Subject: [PATCH] combobox styles. what a pain. WIP --- resources/stylesheets/chevron-down.png | Bin 0 -> 201 bytes resources/stylesheets/style-dcs.css | 47 ++++++++++++++++++++----- 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 resources/stylesheets/chevron-down.png diff --git a/resources/stylesheets/chevron-down.png b/resources/stylesheets/chevron-down.png new file mode 100644 index 0000000000000000000000000000000000000000..186aa21ee93dc5fd9c3474ac17e080bc1a0efa05 GIT binary patch literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5XvOQfKLn>}1{rUgjp4sleBcWM&3`^|aMB094+{6+P!|1_j zz}Wd&fhUw>vPnbdW`<4|g?ao(em4sB1(^PJ+~ru*qhQXUDzu=>&Ox+6wegx>LW`x4 wry#SB(2)d}Z>(1mc~0=9sXXy*U|?p*xvl&6^?|dzKx-L1UHx3vIVCg!0J9N79{>OV literal 0 HcmV?d00001 diff --git a/resources/stylesheets/style-dcs.css b/resources/stylesheets/style-dcs.css index d56aabe1..edb863b6 100644 --- a/resources/stylesheets/style-dcs.css +++ b/resources/stylesheets/style-dcs.css @@ -201,8 +201,8 @@ margin:5px; QGroupBox::title { subcontrol-origin: margin; - subcontrol-position: top left; /* position at the top center */ - padding: 0 3px; + subcontrol-position: top left; /* position at the top left */ + padding: 3px; color: #B7C0C6; font-weight: 800; } @@ -214,12 +214,11 @@ QGroupBox::indicator , QCheckBox::indicator { height: 14px; border: 1px solid #435466; - } QGroupBox::indicator:hover , QCheckBox::indicator:hover { border-color: #fff; -image: url(resources/stylesheets/check-hover.png); + image: url(resources/stylesheets/check-hover.png); } QGroupBox::indicator:unchecked , QCheckBox::indicator:unchecked { @@ -233,6 +232,12 @@ image: url(resources/stylesheets/check.png); /*QDialog*/ QDialog{ + +} + + +QListView { +border: none; } /*QTabWidget*/ @@ -267,15 +272,41 @@ QTabBar::tab:selected { /*QComboxBox*/ QComboxBox { - padding: 6px; + padding:10px; + margin:10px; border:1px solid #3B4656; - background: #465C74; + background: #1D2731; color: #fff; } -QComboBox::down-arrow { - +QComboBox:editable { + background: #465C74; } +QComboBox:!editable{ + background: #1D2731; +} +QComboBox::drop-down { + subcontrol-origin: padding; + subcontrol-position: top right; + padding: 10px; + border:none; + background: #1D2731; + color: #fff; + height: 20px; +} + +QComboBox::down-arrow { + image: url(resources/stylesheets/chevron-down.png); +} + +QComboBox QAbstractItemView { + padding: 10px; + border:1px solid #3B4656; + background: #465C74; + + } + + QLineEdit{ padding: 6px; border:1px solid #3B4656;