-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.py
38 lines (30 loc) · 1.06 KB
/
style.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
# widgets style using setStyleSheet
class LabelStyle:
@staticmethod
def get_title():
return 'QLabel{font-size:16px; padding-left:8px}'
@staticmethod
def get_close():
return 'QLabel:hover{background-color:red}'
@staticmethod
def get_default():
return 'QLabel{padding-left:14px; border-radius:6px;border-width:1px;border-color:black;border-style: solid} QLabel:hover{border-width:2px;}'
@staticmethod
def get_theme(color):
return 'QLabel{padding-left:10px; background-color: %s} QLabel:hover{border-width:1px; border-style: solid}' % color
class ButtonStyle:
@staticmethod
def get_close():
return 'QPushButton:hover{background-color:red}'
@staticmethod
def get_more():
return 'QPushButton::menu-indicator{width:0px}'
class MenuStyle:
@staticmethod
def get_more():
return 'QMenu::item{height:20px; width:100px}'
class WidgetStyle:
@staticmethod
def get_border(name):
return 'QWidget#%s{border:1px solid; border-color:#4f5b62}' % name