Skip to content

Commit 35b4159

Browse files
committed
adjust colors of git buttons to be more readable
1 parent a5df862 commit 35b4159

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

auratext/Components/GitCommit.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def __init__(self, parent=None):
111111
actions_layout.setContentsMargins(12, 6, 12, 6)
112112
actions_layout.setSpacing(6)
113113

114-
self.graph_button = QPushButton('📊 Graph')
114+
self.graph_button = QPushButton('Graph')
115115
self.graph_button.clicked.connect(self.open_git_graph)
116116
self.graph_button.setStyleSheet(f"""
117117
QPushButton {{
118-
background-color: {self.adjust_color_brightness(theme_color, 0.8)};
118+
background-color: {self.adjust_color_brightness(theme_color, 0.4)};
119119
color: #ffffff;
120120
border: none;
121121
border-radius: 2px;
@@ -124,18 +124,18 @@ def __init__(self, parent=None):
124124
font-weight: 500;
125125
}}
126126
QPushButton:hover {{
127-
background-color: {theme_color};
127+
background-color: {self.adjust_color_brightness(theme_color, 0.6)};
128128
}}
129129
QPushButton:pressed {{
130130
background-color: {self.adjust_color_brightness(theme_color, 0.9)};
131131
}}
132132
""")
133133

134-
self.push_button = QPushButton('Push')
134+
self.push_button = QPushButton('Push')
135135
self.push_button.clicked.connect(self.open_git_push)
136136
self.push_button.setStyleSheet(f"""
137137
QPushButton {{
138-
background-color: {self.adjust_color_brightness(theme_color, 0.8)};
138+
background-color: {self.adjust_color_brightness(theme_color, 0.4)};
139139
color: #ffffff;
140140
border: none;
141141
border-radius: 2px;
@@ -144,7 +144,7 @@ def __init__(self, parent=None):
144144
font-weight: 500;
145145
}}
146146
QPushButton:hover {{
147-
background-color: {theme_color};
147+
background-color: {self.adjust_color_brightness(theme_color, 0.6)};
148148
}}
149149
QPushButton:pressed {{
150150
background-color: {self.adjust_color_brightness(theme_color, 0.9)};

0 commit comments

Comments
 (0)