ui(shortcuts): 调整按钮圆角大小

This commit is contained in:
hewenfei 2024-03-18 11:07:36 +08:00
parent 18a8c00909
commit 10b9d7e081
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ BaseButton {
UkuiItems.Background {
anchors.fill: parent
radius: Platform.Theme.normalRadius
radius: mainWindow.isTabletMode ? Platform.Theme.maxRadius*2 : Platform.Theme.normalRadius
mixMode: UkuiItems.ColorMix.Normal
backColorRole: buttonColor === PluginColorRole.HighLight ? Platform.Theme.Highlight : Platform.Theme.Base

View File

@ -26,7 +26,7 @@ import org.ukui.quick.platform 1.0 as Platform
BaseButton {
UkuiItems.Background {
anchors.fill: parent
radius: Platform.Theme.normalRadius
radius: mainWindow.isTabletMode ? Platform.Theme.maxRadius*2 : Platform.Theme.normalRadius
backColorRole: Platform.Theme.Base
backColorAlpha: Platform.Theme.isDarkTheme ? 0.45 : 0.75

View File

@ -27,7 +27,7 @@ import org.ukui.quick.platform 1.0 as Platform
BaseButton {
UkuiItems.Background {
anchors.fill: parent
radius: Platform.Theme.normalRadius
radius: mainWindow.isTabletMode ? Platform.Theme.maxRadius*2 : Platform.Theme.normalRadius
backColorRole: Platform.Theme.Base
backColorAlpha: Platform.Theme.isDarkTheme ? 0.45 : 0.75

View File

@ -51,7 +51,7 @@ Item {
Layout.preferredWidth: height
Layout.alignment: Qt.AlignVCenter
background.radius: Platform.Theme.normalRadius
background.radius: mainWindow.isTabletMode ? Platform.Theme.maxRadius : Platform.Theme.normalRadius
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.16 : containsMouse ? 0.08 : 0.0
icon.source: "applications-system-symbolic"