mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 16:59:35 -05:00
Adds Dark Background in History Window
This commit is contained in:
parent
251012f559
commit
95c7156f69
@ -91,6 +91,8 @@ class GuiCommon:
|
||||
downloads_uploads_progress_bar_chunk_color = "#4E064F"
|
||||
share_zip_progess_bar_border_color = "#4E064F"
|
||||
share_zip_progess_bar_chunk_color = "#4E064F"
|
||||
history_background_color = "#ffffff"
|
||||
history_label_color = "#000000"
|
||||
if color_mode == "dark":
|
||||
header_color = "#F2F2F2"
|
||||
title_color = "#F2F2F2"
|
||||
@ -99,6 +101,8 @@ class GuiCommon:
|
||||
new_tab_button_border = "#878787"
|
||||
new_tab_button_text_color = "#FFFFFF"
|
||||
share_zip_progess_bar_border_color = "#F2F2F2"
|
||||
history_background_color = "#191919"
|
||||
history_label_color = "#ffffff"
|
||||
|
||||
return {
|
||||
# OnionShareGui styles
|
||||
@ -198,9 +202,17 @@ class GuiCommon:
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
}""",
|
||||
"downloads_uploads_not_empty": """
|
||||
QWidget{
|
||||
background-color: """
|
||||
+ history_background_color
|
||||
+""";
|
||||
}""",
|
||||
"downloads_uploads_empty": """
|
||||
QWidget {
|
||||
background-color: #ffffff;
|
||||
background-color: """
|
||||
+ history_background_color
|
||||
+""";
|
||||
border: 1px solid #999999;
|
||||
}
|
||||
QWidget QLabel {
|
||||
@ -253,7 +265,9 @@ class GuiCommon:
|
||||
}""",
|
||||
"history_default_label" : """
|
||||
QLabel {
|
||||
color: black;
|
||||
color: """
|
||||
+ history_label_color
|
||||
+ """;
|
||||
}""",
|
||||
"history_individual_file_timestamp_label": """
|
||||
QLabel {
|
||||
|
@ -714,6 +714,7 @@ class History(QtWidgets.QWidget):
|
||||
self.not_empty_layout.addLayout(header_layout)
|
||||
self.not_empty_layout.addWidget(self.item_list)
|
||||
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)
|
||||
|
||||
# Layout
|
||||
|
Loading…
Reference in New Issue
Block a user