Skip to content

Commit

Permalink
fix: Modify the depth and depth theme style
Browse files Browse the repository at this point in the history
Modify the depth and depth theme style

Bug: https://pms.uniontech.com/bug-view-277549.html
Log: Modify the depth and depth theme style
  • Loading branch information
pengfeixx committed Oct 18, 2024
1 parent aba6d60 commit 5b12ecd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/gui/mainwindow/FolderListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ Item {
Layout.fillWidth: true
color: index === folderListView.currentIndex ? (root.activeFocus ? "white" : (DTK.themeType === ApplicationHelper.LightType ? "black" : "#B2FFFFFF")) : (DTK.themeType === ApplicationHelper.LightType ? "black" : "#B2FFFFFF")
elide: Text.ElideRight
font.pixelSize: 14
horizontalAlignment: Text.AlignLeft
text: model.name
verticalAlignment: Text.AlignVCenter
Expand All @@ -345,7 +344,6 @@ Item {

Layout.rightMargin: 10
color: folderNameLabel.color
font.pixelSize: 14
horizontalAlignment: Text.AlignRight
text: model.count
verticalAlignment: Text.AlignVCenter
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow/ItemListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Item {
property bool isSelected: false
property var startMove: [-1, -1]

color: isSelected ? (rootItem.activeFocus ? "#FF1F6EE7" : (DTK.themeType === ApplicationHelper.LightType ? "#33000000" : "#33FFFFFF")) : (DTK.themeType === ApplicationHelper.LightType ? "white" : "#202944")
color: isSelected ? (rootItem.activeFocus ? "#FF1F6EE7" : (DTK.themeType === ApplicationHelper.LightType ? "#33000000" : "#33FFFFFF")) : (DTK.themeType === ApplicationHelper.LightType ? "white" : "#0CFFFFFF")
height: isSearch ? 67 : 50
radius: 6
width: itemListView.width
Expand Down
6 changes: 3 additions & 3 deletions src/gui/mainwindow/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ ApplicationWindow {

Layout.fillHeight: true//#F2F6F8
Layout.preferredWidth: leftViewWidth
color: DTK.themeType === ApplicationHelper.LightType ? "#EBF6FF" : "#2E1F60"
color: DTK.themeType === ApplicationHelper.LightType ? "#FFFFFF" : "#101010"

ColumnLayout {
anchors.bottomMargin: 10
Expand Down Expand Up @@ -321,7 +321,7 @@ ApplicationWindow {

Rectangle {
anchors.right: parent.right
color: DTK.themeType === ApplicationHelper.LightType ? "#eee7e7e7" : "#151A3A"
color: DTK.themeType === ApplicationHelper.LightType ? "#eee7e7e7" : "black"
height: parent.height
width: 1
}
Expand Down Expand Up @@ -360,7 +360,7 @@ ApplicationWindow {

Layout.fillHeight: true
Layout.preferredWidth: leftViewWidth
color: DTK.themeType === ApplicationHelper.LightType ? "#F1F5F8" : "#14183A"
color: DTK.themeType === ApplicationHelper.LightType ? "#F8F8F8" : "#181818"

onWidthChanged: {
if (!leftBgArea.visible) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow/WebEngineView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Item {
Rectangle {
anchors.top: webRect.top
border.width: 0
color: hasScroll ? (DTK.themeType === ApplicationHelper.LightType ? "#0C000000" : "#0CFFFFFF") : "transparent"
color: hasScroll ? (DTK.themeType === ApplicationHelper.LightType ? "#0C000000" : "#19FFFFFF") : "transparent"
height: 1
width: parent.width
}
Expand Down
4 changes: 2 additions & 2 deletions src/web/css/dark.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
:root {
--color: rgba(192, 198, 212, 1);
--backgroundColor: #090917;
--backgroundColor: #000;
}

body {
color: rgba(192, 198, 212, 1) !important;
background-color: #090917 !important;
background-color: #000 !important;
}

u {
Expand Down

0 comments on commit 5b12ecd

Please sign in to comment.