mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-04 21:08:04 +03:00
Preserve combo box focus border on hover
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -395,7 +395,7 @@ def controlStyleSheet(
|
||||
}}
|
||||
|
||||
QComboBox::drop-down {{
|
||||
subcontrol-origin: border;
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: top right;
|
||||
width: 27px;
|
||||
border: none;
|
||||
|
||||
@@ -490,3 +490,13 @@ class StyleSheetCompositionTest(TestCase):
|
||||
|
||||
self.assertEqual(stylesheet.count('QToolTip {'), 1)
|
||||
self.assertEqual(stylesheet.count('QTableView,'), 1)
|
||||
|
||||
def testComboBoxDropDownHoverStaysInsideTheFocusBorder(self):
|
||||
"""Keep the arrow hover fill from covering the outer focus outline."""
|
||||
for theme in (AppStyleSheet.Light, AppStyleSheet.Dark):
|
||||
with self.subTest(theme=theme):
|
||||
stylesheet = AppStyleSheet.forTheme(theme)
|
||||
dropDownRule = stylesheet.split('QComboBox::drop-down {', 1)[1]
|
||||
dropDownRule = dropDownRule.split('}', 1)[0]
|
||||
|
||||
self.assertIn('subcontrol-origin: padding;', dropDownRule)
|
||||
|
||||
Reference in New Issue
Block a user