Skip to content

Commit

Permalink
fix: adjust ui
Browse files Browse the repository at this point in the history
set windowRadius to 12.
sidebar's topMargin is equal width leftMargin.
text's color doesn't change with highlight when pressed.

Issue: linuxdeepin/developer-center#8409
  • Loading branch information
18202781743 committed May 7, 2024
1 parent 197fc69 commit 778af88
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions qml/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Control {

contentItem: ToolButton {
focusPolicy: Qt.NoFocus
palette.windowText: undefined
contentItem: Column {
anchors.fill: parent

Expand Down
1 change: 1 addition & 0 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ QtObject {
color: "transparent"

DWindow.enabled: !DebugHelper.useRegularWindow
DWindow.windowRadius: 12
DWindow.enableSystemResize: false
DWindow.enableSystemMove: false
DWindow.enableBlurWindow: true
Expand Down
1 change: 1 addition & 0 deletions qml/windowed/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Control {
contentItem: ToolButton {
id: iconButton
focusPolicy: Qt.NoFocus
palette.windowText: undefined
contentItem: Column {
anchors.fill: parent

Expand Down
1 change: 0 additions & 1 deletion qml/windowed/SideBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ ColumnLayout {
id: title

Layout.alignment: Qt.AlignCenter
Layout.topMargin: 10
KeyNavigation.down: computer
KeyNavigation.up: setting
KeyNavigation.tab: nextKeyTabTarget
Expand Down
1 change: 1 addition & 0 deletions qml/windowed/WindowedFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Item {
id: sideBar
anchors.left: parent.left
anchors.top: parent.top
anchors.topMargin: anchors.leftMargin
anchors.bottom: parent.bottom
anchors.leftMargin: 5
nextKeyTabTarget: bottomBar.keyTabTarget
Expand Down

0 comments on commit 778af88

Please sign in to comment.