Qt: camera icon
This commit is contained in:
@@ -39,7 +39,7 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
|
||||
self.allow_multi = allow_multi
|
||||
self.setReadOnly(0)
|
||||
self.addButton(":icons/file.png", self.file_input, _("Read file"))
|
||||
icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png"
|
||||
icon = ":icons/camera_white.png" if ColorScheme.dark_scheme else ":icons/camera_dark.png"
|
||||
self.addButton(icon, self.qr_input, _("Read QR code"))
|
||||
run_hook('scan_text_edit', self)
|
||||
|
||||
|
||||
@@ -588,6 +588,7 @@ class ButtonsWidget(QWidget):
|
||||
def addButton(self, icon_name, on_click, tooltip):
|
||||
button = QToolButton(self)
|
||||
button.setIcon(QIcon(icon_name))
|
||||
button.setIconSize(QSize(25,25))
|
||||
button.setStyleSheet("QToolButton { border: none; hover {border: 1px} pressed {border: 1px} padding: 0px; }")
|
||||
button.setVisible(True)
|
||||
button.setToolTip(tooltip)
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
<file>icons/revealer_c.png</file>
|
||||
<file>icons/qrcode.png</file>
|
||||
<file>icons/qrcode_white.png</file>
|
||||
<file>icons/camera_dark.png</file>
|
||||
<file>icons/camera_white.png</file>
|
||||
<file>icons/preferences.png</file>
|
||||
<file>icons/safe-t_unpaired.png</file>
|
||||
<file>icons/safe-t.png</file>
|
||||
|
||||
BIN
icons/camera_dark.png
Normal file
BIN
icons/camera_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 687 B |
BIN
icons/camera_white.png
Normal file
BIN
icons/camera_white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user