mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-28 00:07:13 -04:00
Adds Dark Background in History Window
This commit is contained in:
parent
2ea722b385
commit
39084c9651
2 changed files with 17 additions and 2 deletions
|
@ -91,6 +91,8 @@ class GuiCommon:
|
||||||
downloads_uploads_progress_bar_chunk_color = "#4E064F"
|
downloads_uploads_progress_bar_chunk_color = "#4E064F"
|
||||||
share_zip_progess_bar_border_color = "#4E064F"
|
share_zip_progess_bar_border_color = "#4E064F"
|
||||||
share_zip_progess_bar_chunk_color = "#4E064F"
|
share_zip_progess_bar_chunk_color = "#4E064F"
|
||||||
|
history_background_color = "#ffffff"
|
||||||
|
history_label_color = "#000000"
|
||||||
if color_mode == "dark":
|
if color_mode == "dark":
|
||||||
header_color = "#F2F2F2"
|
header_color = "#F2F2F2"
|
||||||
title_color = "#F2F2F2"
|
title_color = "#F2F2F2"
|
||||||
|
@ -99,6 +101,8 @@ class GuiCommon:
|
||||||
new_tab_button_border = "#878787"
|
new_tab_button_border = "#878787"
|
||||||
new_tab_button_text_color = "#FFFFFF"
|
new_tab_button_text_color = "#FFFFFF"
|
||||||
share_zip_progess_bar_border_color = "#F2F2F2"
|
share_zip_progess_bar_border_color = "#F2F2F2"
|
||||||
|
history_background_color = "#191919"
|
||||||
|
history_label_color = "#ffffff"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
# OnionShareGui styles
|
# OnionShareGui styles
|
||||||
|
@ -198,9 +202,17 @@ class GuiCommon:
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}""",
|
}""",
|
||||||
|
"downloads_uploads_not_empty": """
|
||||||
|
QWidget{
|
||||||
|
background-color: """
|
||||||
|
+ history_background_color
|
||||||
|
+""";
|
||||||
|
}""",
|
||||||
"downloads_uploads_empty": """
|
"downloads_uploads_empty": """
|
||||||
QWidget {
|
QWidget {
|
||||||
background-color: #ffffff;
|
background-color: """
|
||||||
|
+ history_background_color
|
||||||
|
+""";
|
||||||
border: 1px solid #999999;
|
border: 1px solid #999999;
|
||||||
}
|
}
|
||||||
QWidget QLabel {
|
QWidget QLabel {
|
||||||
|
@ -253,7 +265,9 @@ class GuiCommon:
|
||||||
}""",
|
}""",
|
||||||
"history_default_label" : """
|
"history_default_label" : """
|
||||||
QLabel {
|
QLabel {
|
||||||
color: black;
|
color: """
|
||||||
|
+ history_label_color
|
||||||
|
+ """;
|
||||||
}""",
|
}""",
|
||||||
"history_individual_file_timestamp_label": """
|
"history_individual_file_timestamp_label": """
|
||||||
QLabel {
|
QLabel {
|
||||||
|
|
|
@ -714,6 +714,7 @@ class History(QtWidgets.QWidget):
|
||||||
self.not_empty_layout.addLayout(header_layout)
|
self.not_empty_layout.addLayout(header_layout)
|
||||||
self.not_empty_layout.addWidget(self.item_list)
|
self.not_empty_layout.addWidget(self.item_list)
|
||||||
self.not_empty = QtWidgets.QWidget()
|
self.not_empty = QtWidgets.QWidget()
|
||||||
|
self.not_empty.setStyleSheet(self.common.gui.css["downloads_uploads_not_empty"])
|
||||||
self.not_empty.setLayout(self.not_empty_layout)
|
self.not_empty.setLayout(self.not_empty_layout)
|
||||||
|
|
||||||
# Layout
|
# Layout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue