add option to disable showing image urls as images

This commit is contained in:
dries.k
2024-05-17 23:52:31 +02:00
parent 357cd89e25
commit 7a173dbf94
5 changed files with 62 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'gotify_tray/gui/designs\widget_settings.ui'
# Form implementation generated from reading ui file 'gotify_tray/gui/designs/widget_settings.ui'
#
# Created by: PyQt6 UI code generator 6.5.2
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
@@ -12,7 +12,7 @@ from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(415, 446)
Dialog.resize(442, 530)
self.gridLayout = QtWidgets.QGridLayout(Dialog)
self.gridLayout.setObjectName("gridLayout")
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
@@ -70,6 +70,9 @@ class Ui_Dialog(object):
self.cb_priority_colors = QtWidgets.QCheckBox(parent=self.groupBox_2)
self.cb_priority_colors.setObjectName("cb_priority_colors")
self.verticalLayout_2.addWidget(self.cb_priority_colors)
self.cb_image_urls = QtWidgets.QCheckBox(parent=self.groupBox_2)
self.cb_image_urls.setObjectName("cb_image_urls")
self.verticalLayout_2.addWidget(self.cb_image_urls)
self.cb_locale = QtWidgets.QCheckBox(parent=self.groupBox_2)
self.cb_locale.setObjectName("cb_locale")
self.verticalLayout_2.addWidget(self.cb_locale)
@@ -253,10 +256,29 @@ class Ui_Dialog(object):
Dialog.setTabOrder(self.tabWidget, self.spin_priority)
Dialog.setTabOrder(self.spin_priority, self.spin_duration)
Dialog.setTabOrder(self.spin_duration, self.cb_notify)
Dialog.setTabOrder(self.cb_notify, self.pb_change_server_info)
Dialog.setTabOrder(self.pb_change_server_info, self.pb_font_message_title)
Dialog.setTabOrder(self.cb_notify, self.cb_notification_click)
Dialog.setTabOrder(self.cb_notification_click, self.cb_tray_icon_unread)
Dialog.setTabOrder(self.cb_tray_icon_unread, self.cb_priority_colors)
Dialog.setTabOrder(self.cb_priority_colors, self.cb_image_urls)
Dialog.setTabOrder(self.cb_image_urls, self.cb_locale)
Dialog.setTabOrder(self.cb_locale, self.cb_sort_applications)
Dialog.setTabOrder(self.cb_sort_applications, self.pb_change_server_info)
Dialog.setTabOrder(self.pb_change_server_info, self.pb_reset_fonts)
Dialog.setTabOrder(self.pb_reset_fonts, self.pb_font_message_title)
Dialog.setTabOrder(self.pb_font_message_title, self.pb_font_message_date)
Dialog.setTabOrder(self.pb_font_message_date, self.pb_font_message_content)
Dialog.setTabOrder(self.pb_font_message_content, self.pb_reset)
Dialog.setTabOrder(self.pb_reset, self.pb_import)
Dialog.setTabOrder(self.pb_import, self.pb_export)
Dialog.setTabOrder(self.pb_export, self.groupbox_image_popup)
Dialog.setTabOrder(self.groupbox_image_popup, self.spin_popup_w)
Dialog.setTabOrder(self.spin_popup_w, self.spin_popup_h)
Dialog.setTabOrder(self.spin_popup_h, self.groupbox_watchdog)
Dialog.setTabOrder(self.groupbox_watchdog, self.spin_watchdog_interval)
Dialog.setTabOrder(self.spin_watchdog_interval, self.pb_clear_cache)
Dialog.setTabOrder(self.pb_clear_cache, self.pb_open_cache_dir)
Dialog.setTabOrder(self.pb_open_cache_dir, self.combo_logging)
Dialog.setTabOrder(self.combo_logging, self.pb_open_log)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
@@ -272,6 +294,7 @@ class Ui_Dialog(object):
self.cb_priority_colors.setToolTip(_translate("Dialog", "4..7 -> medium\n"
"8..10 -> high"))
self.cb_priority_colors.setText(_translate("Dialog", "Show message priority colors"))
self.cb_image_urls.setText(_translate("Dialog", "Show image urls as images"))
self.cb_locale.setText(_translate("Dialog", "Display date in the system locale format"))
self.cb_sort_applications.setText(_translate("Dialog", "Sort the application list alphabetically (requires restart)"))
self.groupBox_server_info.setTitle(_translate("Dialog", "Server info"))

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>415</width>
<height>446</height>
<width>442</width>
<height>530</height>
</rect>
</property>
<property name="windowTitle">
@@ -141,6 +141,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_image_urls">
<property name="text">
<string>Show image urls as images</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_locale">
<property name="text">
@@ -594,10 +601,29 @@
<tabstop>spin_priority</tabstop>
<tabstop>spin_duration</tabstop>
<tabstop>cb_notify</tabstop>
<tabstop>cb_notification_click</tabstop>
<tabstop>cb_tray_icon_unread</tabstop>
<tabstop>cb_priority_colors</tabstop>
<tabstop>cb_image_urls</tabstop>
<tabstop>cb_locale</tabstop>
<tabstop>cb_sort_applications</tabstop>
<tabstop>pb_change_server_info</tabstop>
<tabstop>pb_reset_fonts</tabstop>
<tabstop>pb_font_message_title</tabstop>
<tabstop>pb_font_message_date</tabstop>
<tabstop>pb_font_message_content</tabstop>
<tabstop>pb_reset</tabstop>
<tabstop>pb_import</tabstop>
<tabstop>pb_export</tabstop>
<tabstop>groupbox_image_popup</tabstop>
<tabstop>spin_popup_w</tabstop>
<tabstop>spin_popup_h</tabstop>
<tabstop>groupbox_watchdog</tabstop>
<tabstop>spin_watchdog_interval</tabstop>
<tabstop>pb_clear_cache</tabstop>
<tabstop>pb_open_cache_dir</tabstop>
<tabstop>combo_logging</tabstop>
<tabstop>pb_open_log</tabstop>
</tabstops>
<resources/>
<connections>