mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[view] improvement: not depending on system's confirmation dialog icon
This commit is contained in:
@@ -28,7 +28,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- default pre-selected installation category is now "Network" (Internet)
|
||||
|
||||
- UI
|
||||
- only displaying a confirmation dialog for custom actions that start immediately
|
||||
- only displaying a confirmation dialog for custom actions that start immediately
|
||||
- not depending on system's confirmation dialog icon
|
||||
|
||||
### Fixes
|
||||
- Web
|
||||
|
||||
@@ -65,8 +65,7 @@ class ConfirmationDialog(QDialog):
|
||||
self.layout().addWidget(container_body)
|
||||
|
||||
lb_icon = QLabel()
|
||||
lb_icon.setObjectName('confirm_icon')
|
||||
lb_icon.setPixmap(QApplication.style().standardIcon(QStyle.SP_MessageBoxQuestion).pixmap(QSize(48, 48)))
|
||||
lb_icon.setObjectName("confirm_dialog_icon")
|
||||
container_body.layout().addWidget(lb_icon)
|
||||
|
||||
if body:
|
||||
|
||||
@@ -420,6 +420,10 @@ QLabel[tip_icon = "true"] {
|
||||
qproperty-pixmap: url("@style_dir/img/help.svg");
|
||||
}
|
||||
|
||||
QLabel#confirm_dialog_icon {
|
||||
qproperty-pixmap: url("@style_dir/img/question.svg");
|
||||
}
|
||||
|
||||
FormQt IconButton#clean_field {
|
||||
qproperty-icon: url("@style_dir/img/clean.svg");
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="help.svg"
|
||||
sodipodi:docname="question.svg"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata
|
||||
id="metadata933"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -74,6 +74,15 @@ QLabel[tip_icon = "true"] {
|
||||
max-width: 12;
|
||||
}
|
||||
|
||||
QLabel#confirm_dialog_icon {
|
||||
qproperty-scaledContents: True;
|
||||
min-width: 48px;
|
||||
max-width: 48px;
|
||||
min-height: 48px;
|
||||
max-height: 48px;
|
||||
|
||||
}
|
||||
|
||||
QCustomToolbar QWidget[spacer = "true"] {
|
||||
min-width: 5px;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="help.svg"
|
||||
sodipodi:docname="question.svg"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata
|
||||
id="metadata933"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -79,6 +79,10 @@ QLabel[tip_icon = "true"] {
|
||||
qproperty-pixmap: url("@style_dir/img/help.svg");
|
||||
}
|
||||
|
||||
QLabel#confirm_dialog_icon {
|
||||
qproperty-pixmap: url("@style_dir/img/question.svg");
|
||||
}
|
||||
|
||||
QPlainTextEdit[console = 'true'] {
|
||||
background: @console.background.color;
|
||||
color: @console.font.color;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
height="512"
|
||||
viewBox="0 0 512 512"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="help.svg"
|
||||
sodipodi:docname="question.svg"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata
|
||||
id="metadata933"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -116,7 +116,7 @@ QLabel[error = "true"] {
|
||||
}
|
||||
|
||||
QLabel[help_icon = "true"] {
|
||||
qproperty-pixmap: url("@style_dir/img/help.svg");
|
||||
qproperty-pixmap: url("@style_dir/img/question.svg");
|
||||
}
|
||||
|
||||
QLabel[warning_icon = "true"] {
|
||||
@@ -124,7 +124,11 @@ QLabel[warning_icon = "true"] {
|
||||
}
|
||||
|
||||
QLabel[tip_icon = "true"] {
|
||||
qproperty-pixmap: url("@style_dir/img/help.svg");
|
||||
qproperty-pixmap: url("@style_dir/img/question.svg");
|
||||
}
|
||||
|
||||
QLabel#confirm_dialog_icon {
|
||||
qproperty-pixmap: url("@style_dir/img/question.svg");
|
||||
}
|
||||
|
||||
QPlainTextEdit {
|
||||
|
||||
Reference in New Issue
Block a user