Skip to content

Commit 9903f4e

Browse files
committed
Fix styling
1 parent 8429641 commit 9903f4e

1 file changed

Lines changed: 0 additions & 179 deletions

File tree

anylabeling/styles/theme.py

Lines changed: 0 additions & 179 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ def get_stylesheet():
151151
color: {colors["highlighted_text"]};
152152
}}
153153
154-
/* Dock Widgets */
155-
QDockWidget {{
156-
titlebar-close-icon: url(:/16/close.png);
157-
titlebar-normal-icon: url(:/16/undock.png);
158-
}}
159-
160154
QDockWidget::title {{
161155
text-align: center;
162156
padding: 5px;
@@ -254,79 +248,6 @@ def get_stylesheet():
254248
height: 0px;
255249
}}
256250
257-
/* Buttons */
258-
QPushButton {{
259-
background-color: {colors["button"]};
260-
color: {colors["button_text"]};
261-
border: 1px solid {colors["border"]};
262-
border-radius: 4px;
263-
padding: 5px 10px;
264-
min-height: 20px;
265-
}}
266-
267-
QPushButton:hover {{
268-
background-color: {colors["midlight"]};
269-
}}
270-
271-
QPushButton:pressed {{
272-
background-color: {colors["mid"]};
273-
}}
274-
275-
QPushButton:checked {{
276-
background-color: {colors["highlight"]};
277-
color: {colors["highlighted_text"]};
278-
}}
279-
280-
QPushButton:disabled {{
281-
background-color: {colors["alternate_base"]};
282-
color: {colors["mid"]};
283-
border: 1px solid {colors["midlight"]};
284-
}}
285-
286-
/* Line Edit */
287-
QLineEdit {{
288-
background-color: {colors["base"]};
289-
color: {colors["text"]};
290-
border: 1px solid {colors["border"]};
291-
border-radius: 4px;
292-
padding: 3px 5px;
293-
selection-background-color: {colors["highlight"]};
294-
selection-color: {colors["highlighted_text"]};
295-
}}
296-
297-
QLineEdit:focus {{
298-
border: 1px solid {colors["highlight"]};
299-
}}
300-
301-
/* Combo Box */
302-
QComboBox {{
303-
background-color: {colors["button"]};
304-
color: {colors["button_text"]};
305-
border: 1px solid {colors["border"]};
306-
border-radius: 4px;
307-
padding: 2px 10px 2px 5px;
308-
min-height: 20px;
309-
}}
310-
311-
QComboBox:hover {{
312-
background-color: {colors["midlight"]};
313-
}}
314-
315-
QComboBox::drop-down {{
316-
subcontrol-origin: padding;
317-
subcontrol-position: top right;
318-
width: 20px;
319-
border-left: 1px solid {colors["border"]};
320-
}}
321-
322-
QComboBox QAbstractItemView {{
323-
background-color: {colors["window"]};
324-
color: {colors["window_text"]};
325-
border: 1px solid {colors["border"]};
326-
selection-background-color: {colors["highlight"]};
327-
selection-color: {colors["highlighted_text"]};
328-
}}
329-
330251
/* Tab Widget */
331252
QTabWidget::pane {{
332253
border: 1px solid {colors["border"]};
@@ -355,50 +276,6 @@ def get_stylesheet():
355276
margin-top: 2px;
356277
}}
357278
358-
/* Check Box */
359-
QCheckBox {{
360-
color: {colors["text"]};
361-
spacing: 5px;
362-
}}
363-
364-
QCheckBox::indicator {{
365-
width: 16px;
366-
height: 16px;
367-
border: 1px solid {colors["border"]};
368-
border-radius: 3px;
369-
}}
370-
371-
QCheckBox::indicator:unchecked {{
372-
background-color: {colors["base"]};
373-
}}
374-
375-
QCheckBox::indicator:checked {{
376-
background-color: {colors["highlight"]};
377-
image: url(:/16/check.png);
378-
}}
379-
380-
/* Radio Button */
381-
QRadioButton {{
382-
color: {colors["text"]};
383-
spacing: 5px;
384-
}}
385-
386-
QRadioButton::indicator {{
387-
width: 16px;
388-
height: 16px;
389-
border: 1px solid {colors["border"]};
390-
border-radius: 8px;
391-
}}
392-
393-
QRadioButton::indicator:unchecked {{
394-
background-color: {colors["base"]};
395-
}}
396-
397-
QRadioButton::indicator:checked {{
398-
background-color: {colors["highlight"]};
399-
image: url(:/16/radiobtn.png);
400-
}}
401-
402279
/* Progress Bar */
403280
QProgressBar {{
404281
background-color: {colors["base"]};
@@ -414,62 +291,6 @@ def get_stylesheet():
414291
margin: 0.5px;
415292
}}
416293
417-
/* Sliders */
418-
QSlider::groove:horizontal {{
419-
height: 8px;
420-
background: {colors["base"]};
421-
border: 1px solid {colors["border"]};
422-
border-radius: 4px;
423-
}}
424-
425-
QSlider::handle:horizontal {{
426-
background: {colors["highlight"]};
427-
border: 1px solid {colors["border"]};
428-
width: 14px;
429-
margin: -4px 0;
430-
border-radius: 7px;
431-
}}
432-
433-
QSlider::groove:vertical {{
434-
width: 8px;
435-
background: {colors["base"]};
436-
border: 1px solid {colors["border"]};
437-
border-radius: 4px;
438-
}}
439-
440-
QSlider::handle:vertical {{
441-
background: {colors["highlight"]};
442-
border: 1px solid {colors["border"]};
443-
height: 14px;
444-
margin: 0 -4px;
445-
border-radius: 7px;
446-
}}
447-
448-
/* Spinbox */
449-
QSpinBox, QDoubleSpinBox {{
450-
background-color: {colors["base"]};
451-
color: {colors["text"]};
452-
border: 1px solid {colors["border"]};
453-
border-radius: 4px;
454-
padding: 2px 5px;
455-
}}
456-
457-
QSpinBox::up-button, QDoubleSpinBox::up-button {{
458-
subcontrol-origin: border;
459-
subcontrol-position: top right;
460-
width: 16px;
461-
border-left: 1px solid {colors["border"]};
462-
border-bottom: 1px solid {colors["border"]};
463-
}}
464-
465-
QSpinBox::down-button, QDoubleSpinBox::down-button {{
466-
subcontrol-origin: border;
467-
subcontrol-position: bottom right;
468-
width: 16px;
469-
border-left: 1px solid {colors["border"]};
470-
border-top: 1px solid {colors["border"]};
471-
}}
472-
473294
/* Status Bar */
474295
QStatusBar {{
475296
background-color: {colors["window"]};

0 commit comments

Comments
 (0)