[view] improvement: not depending on system's confirmation dialog icon

This commit is contained in:
Vinicius Moreira
2021-12-16 09:37:39 -03:00
parent 5de814e12a
commit 00829ba0a7
9 changed files with 29 additions and 8 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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");
}

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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 {