From 602a4d2218bfec0b9bc27240b62f99bd871b6738 Mon Sep 17 00:00:00 2001 From: YeShanShan Date: Wed, 3 Jan 2024 16:15:17 +0800 Subject: [PATCH] refact: modify icon's size to 24 DSvgRender can't resolve some icon, e.g: `xlink:href="data:img/png;base64` and we can find `png` firstly by modifing size to properly, Issue: https://github.com/linuxdeepin/developer-center/issues/6291 --- qt6/src/qml/FlowStyle.qml | 10 +++++----- src/qml/FlowStyle.qml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/qt6/src/qml/FlowStyle.qml b/qt6/src/qml/FlowStyle.qml index 4969a06a..9a97c91d 100644 --- a/qt6/src/qml/FlowStyle.qml +++ b/qt6/src/qml/FlowStyle.qml @@ -401,7 +401,7 @@ QtObject { property QtObject edit: QtObject { property int indicatorSpacing: 7 - property int indicatorSize: 22 + property int indicatorSize: 24 property D.Palette separator: D.Palette { normal: Qt.rgba(0, 0, 0, 0.05) @@ -412,7 +412,7 @@ QtObject { // Edit property QtObject edit: QtObject { property int width: 180 - property int actionIconSize: 22 + property int actionIconSize: 24 property int textFieldHeight: 36 property int textAreaHeight: 100 @@ -546,7 +546,7 @@ QtObject { property QtObject floatingMessage: QtObject { property int maximumWidth: 450 property int minimumHeight: 40 - property int closeButtonSize: 22 + property int closeButtonSize: 24 } property QtObject floatingPanel: QtObject { @@ -707,8 +707,8 @@ QtObject { property int height: 40 property color normalColor: Qt.rgba(0, 0, 0, 0.05) property color cascadeColor: Qt.rgba(0, 0, 0, 0.15) - property int iconSize: 22 - property int checkIndicatorIconSize: 22 + property int iconSize: 24 + property int checkIndicatorIconSize: 24 property D.Palette checkBackgroundColor: D.Palette { hovered: Qt.rgba(0, 0, 0, 0.1) normal: Qt.rgba(0, 0, 0, 0.05) diff --git a/src/qml/FlowStyle.qml b/src/qml/FlowStyle.qml index b7b88db2..b34140ac 100644 --- a/src/qml/FlowStyle.qml +++ b/src/qml/FlowStyle.qml @@ -401,7 +401,7 @@ QtObject { property QtObject edit: QtObject { property int indicatorSpacing: 7 - property int indicatorSize: 22 + property int indicatorSize: 24 property D.Palette separator: D.Palette { normal: Qt.rgba(0, 0, 0, 0.05) @@ -412,7 +412,7 @@ QtObject { // Edit property QtObject edit: QtObject { property int width: 180 - property int actionIconSize: 22 + property int actionIconSize: 24 property int textFieldHeight: 36 property int textAreaHeight: 100 @@ -546,7 +546,7 @@ QtObject { property QtObject floatingMessage: QtObject { property int maximumWidth: 450 property int minimumHeight: 40 - property int closeButtonSize: 22 + property int closeButtonSize: 24 } property QtObject floatingPanel: QtObject { @@ -707,8 +707,8 @@ QtObject { property int height: 40 property color normalColor: Qt.rgba(0, 0, 0, 0.05) property color cascadeColor: Qt.rgba(0, 0, 0, 0.15) - property int iconSize: 22 - property int checkIndicatorIconSize: 22 + property int iconSize: 24 + property int checkIndicatorIconSize: 24 property D.Palette checkBackgroundColor: D.Palette { hovered: Qt.rgba(0, 0, 0, 0.1) normal: Qt.rgba(0, 0, 0, 0.05)