Skip to content

Commit a143159

Browse files
committed
Dark Theme Support Eagle
1 parent e5df29d commit a143159

21 files changed

+50
-32
lines changed

Component/Footer.qml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ import Style 1.0
55
Image{
66
id:root
77
width: parent.width
8-
source: "qrc:/Icons/green.png"
9-
sourceSize: Qt.size(root.width , 134)
8+
source: Style.isDark ? "qrc:/Icons/dark/bottom_dark.png" : "qrc:/Icons/green.png"
9+
sourceSize: Qt.size(root.width , Style.isDark ? 150 : 134)
1010
signal settingsClicked()
1111
signal musicClicked()
1212
signal callingClicked()
1313
signal homeClicked()
1414
signal mapClicked()
1515
signal chargeClicked()
1616
Image{
17-
source: "qrc:/Icons/white.png"
17+
visible: !Style.isDark
18+
source: Style.isDark ? "qrc:/Icons/dark/bottom_dark2.png" : "qrc:/Icons/white.png"
1819
sourceSize.height: 116
1920
width: parent.width
2021
anchors.horizontalCenter: parent.horizontalCenter
@@ -53,6 +54,7 @@ Image{
5354
RowLayout{
5455
anchors.horizontalCenter: parent.horizontalCenter
5556
anchors.verticalCenter: parent.verticalCenter
57+
anchors.verticalCenterOffset: 12
5658
width: parent.width * 0.9
5759
Item{
5860
Layout.preferredWidth: 75

Component/Header.qml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import QtQuick.Layouts 1.3
44
import Style 1.0
55

66
Image{
7-
source: "qrc:/Icons/topbar.svg"
7+
source: Style.isDark ? "qrc:/Icons/dark/top_dark.png" : "qrc:/Icons/topbar.svg"
88
RowLayout{
99
anchors.horizontalCenter: parent.horizontalCenter
1010
anchors.verticalCenter: parent.verticalCenter
1111
width: parent.width * 0.85
1212
PrefsLabel{
13-
text: qsTr("23rd January")
13+
text: new Date().toLocaleDateString()
1414
}
1515
Item{
1616
Layout.fillWidth: true //2BD150
@@ -118,13 +118,12 @@ Image{
118118
}
119119

120120
RowLayout{
121-
spacing: 10
122121
IconButton{
123122
id:wifiIcon
124123
checkable: false
125124
roundIcon: true
126-
iconWidth: 37
127-
iconHeight: 37
125+
iconWidth: 32
126+
iconHeight: 32
128127
setIcon: getWifiIcon(3)
129128
}
130129
IconButton{
@@ -133,7 +132,7 @@ Image{
133132
}
134133
}
135134
PrefsLabel{
136-
text: qsTr("04:36 PM")
135+
text: new Date().toLocaleTimeString(Qt.locale(), "hh:mm AP")
137136
}
138137
}
139138

Component/IconWithLabel.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Button {
3636
}
3737
PrefsLabel{
3838
z:2
39+
color: control.textColor
3940
font.pixelSize: Style.paragraph
4041
text: control.text
4142
}

Component/InfoPopup.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Pane{
1717
height: 130
1818
background: Rectangle{
1919
anchors.fill: parent
20-
color: palette.base
20+
color : Style.isDark ? palette.dark : palette.light
2121
radius: 15
22+
2223
Rectangle{
2324
anchors.left: parent.left
2425
anchors.verticalCenter: parent.verticalCenter

Component/PrefsButton.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Button {
1818
property real iconFactor: 0.8
1919
property bool mirror: false
2020

21-
implicitWidth: 46
22-
implicitHeight: 46
21+
implicitWidth: 55
22+
implicitHeight: 55
2323
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
2424

2525
contentItem:ColumnLayout{

Component/Toast.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Popup{
2323
padding:0
2424
background: Rectangle{
2525
anchors.fill: parent
26-
color: palette.base
26+
color : Style.isDark ? palette.dark : palette.light
2727
radius: 15
2828
Rectangle{
2929
anchors.left: parent.left

EagleTheme.pro.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 11.0.3, 2023-11-25T14:57:40. -->
3+
<!-- Written by QtCreator 11.0.3, 2023-11-26T02:33:20. -->
44
<qtcreator>
55
<data>
66
<variable>EnvironmentId</variable>

Icons/dark/background.png

301 KB
Loading

Icons/dark/stars.png

1.58 KB
Loading

Icons/topIcons/eva_bluetooth-fill.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)