mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
State in Chat mode that chats are ephemeral
This commit is contained in:
parent
7c11266107
commit
e33887c22d
@ -151,6 +151,7 @@
|
|||||||
"history_requests_tooltip": "{} web requests",
|
"history_requests_tooltip": "{} web requests",
|
||||||
"error_cannot_create_data_dir": "Could not create OnionShare data folder: {}",
|
"error_cannot_create_data_dir": "Could not create OnionShare data folder: {}",
|
||||||
"gui_receive_mode_warning": "Receive mode lets people upload files to your computer.<br><br><b>Some files can potentially take control of your computer if you open them. Only open things from people you trust, or if you know what you are doing.</b>",
|
"gui_receive_mode_warning": "Receive mode lets people upload files to your computer.<br><br><b>Some files can potentially take control of your computer if you open them. Only open things from people you trust, or if you know what you are doing.</b>",
|
||||||
|
"gui_chat_mode_explainer": "Chat mode lets you chat interactively with others, in Tor Browser.<br><br><b>Chat history is not stored in OnionShare. The chat history will disappear when you close Tor Browser.</b>",
|
||||||
"gui_open_folder_error": "Could not open the folder with xdg-open. The file is here: {}",
|
"gui_open_folder_error": "Could not open the folder with xdg-open. The file is here: {}",
|
||||||
"gui_settings_language_label": "Language",
|
"gui_settings_language_label": "Language",
|
||||||
"gui_settings_theme_label": "Theme",
|
"gui_settings_theme_label": "Theme",
|
||||||
|
@ -80,6 +80,11 @@ class ChatMode(Mode):
|
|||||||
header_label = QtWidgets.QLabel(strings._("gui_new_tab_chat_button"))
|
header_label = QtWidgets.QLabel(strings._("gui_new_tab_chat_button"))
|
||||||
header_label.setStyleSheet(self.common.gui.css["mode_header_label"])
|
header_label.setStyleSheet(self.common.gui.css["mode_header_label"])
|
||||||
|
|
||||||
|
# Chat mode explainer
|
||||||
|
chat_mode_explainer = QtWidgets.QLabel(strings._("gui_chat_mode_explainer"))
|
||||||
|
chat_mode_explainer.setMinimumHeight(80)
|
||||||
|
chat_mode_explainer.setWordWrap(True)
|
||||||
|
|
||||||
# Top bar
|
# Top bar
|
||||||
top_bar_layout = QtWidgets.QHBoxLayout()
|
top_bar_layout = QtWidgets.QHBoxLayout()
|
||||||
# Add space at the top, same height as the toggle history bar in other modes
|
# Add space at the top, same height as the toggle history bar in other modes
|
||||||
@ -89,6 +94,7 @@ class ChatMode(Mode):
|
|||||||
self.main_layout = QtWidgets.QVBoxLayout()
|
self.main_layout = QtWidgets.QVBoxLayout()
|
||||||
self.main_layout.addLayout(top_bar_layout)
|
self.main_layout.addLayout(top_bar_layout)
|
||||||
self.main_layout.addWidget(header_label)
|
self.main_layout.addWidget(header_label)
|
||||||
|
self.main_layout.addWidget(chat_mode_explainer)
|
||||||
self.main_layout.addWidget(self.primary_action, stretch=1)
|
self.main_layout.addWidget(self.primary_action, stretch=1)
|
||||||
self.main_layout.addWidget(self.server_status)
|
self.main_layout.addWidget(self.server_status)
|
||||||
self.main_layout.addWidget(MinimumSizeWidget(700, 0))
|
self.main_layout.addWidget(MinimumSizeWidget(700, 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user