Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
More icons replaced with icon font
Browse files Browse the repository at this point in the history
  • Loading branch information
martonborzak committed Oct 12, 2019
1 parent a856c1b commit f4f2c0b
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 63 deletions.
Binary file removed components/blind/images/icon-blind.png
Binary file not shown.
21 changes: 8 additions & 13 deletions components/blind/ui/Card.qml
Expand Up @@ -84,22 +84,17 @@ Rectangle {
} }
} }


Image { Text {
id: icon id: icon
asynchronous: true color: colorText
text: "\uE900"
renderType: Text.NativeRendering
width: 85 width: 85
height: 85 height: 85
fillMode: Image.PreserveAspectFit verticalAlignment: Text.AlignVCenter
source: "qrc:/components/blind/images/icon-blind.png" horizontalAlignment: Text.AlignHCenter
anchors {top: parent.top; topMargin: 30; left: parent.left; leftMargin: 30} font {family: "icons"; pixelSize: 100 }

anchors {top: parent.top; topMargin: 20; left: parent.left; leftMargin: 20}
ColorOverlay {
visible: !darkMode
anchors.fill: parent
source: parent
color: colorText
antialiasing: true
}
} }


Text { Text {
Expand Down
Binary file removed components/light/images/icon-light.png
Binary file not shown.
21 changes: 8 additions & 13 deletions components/light/ui/CardColor.qml
Expand Up @@ -119,22 +119,17 @@ Rectangle {
} }
} }


Image { Text {
id: icon id: icon
asynchronous: true color: colorText
text: "\uE903"
renderType: Text.NativeRendering
width: 85 width: 85
height: 85 height: 85
fillMode: Image.PreserveAspectFit verticalAlignment: Text.AlignVCenter
source: "qrc:/components/light/images/icon-light.png" horizontalAlignment: Text.AlignHCenter
anchors {top: parent.top; topMargin: 30; left: parent.left; leftMargin: 30} font {family: "icons"; pixelSize: 100 }

anchors {top: parent.top; topMargin: 20; left: parent.left; leftMargin: 20}
ColorOverlay {
visible: !darkMode
anchors.fill: parent
source: parent
color: colorText
antialiasing: true
}
} }


Text { Text {
Expand Down
21 changes: 8 additions & 13 deletions components/light/ui/CardDimmable.qml
Expand Up @@ -90,22 +90,17 @@ Rectangle {
} }
} }


Image { Text {
id: icon id: icon
asynchronous: true color: colorText
text: "\uE903"
renderType: Text.NativeRendering
width: 85 width: 85
height: 85 height: 85
fillMode: Image.PreserveAspectFit verticalAlignment: Text.AlignVCenter
source: "qrc:/components/light/images/icon-light.png" horizontalAlignment: Text.AlignHCenter
anchors {top: parent.top; topMargin: 30; left: parent.left; leftMargin: 30} font {family: "icons"; pixelSize: 100 }

anchors {top: parent.top; topMargin: 20; left: parent.left; leftMargin: 20}
ColorOverlay {
visible: !darkMode
anchors.fill: parent
source: parent
color: colorText
antialiasing: true
}
} }


Text { Text {
Expand Down
21 changes: 8 additions & 13 deletions components/light/ui/CardSwitch.qml
Expand Up @@ -33,22 +33,17 @@ Rectangle {
} }
} }


Image { Text {
id: icon id: icon
asynchronous: true color: colorText
text: "\uE903"
renderType: Text.NativeRendering
width: 85 width: 85
height: 85 height: 85
fillMode: Image.PreserveAspectFit verticalAlignment: Text.AlignVCenter
source: "qrc:/components/light/images/icon-light.png" horizontalAlignment: Text.AlignHCenter
anchors {top: parent.top; topMargin: 30; left: parent.left; leftMargin: 30} font {family: "icons"; pixelSize: 100 }

anchors {top: parent.top; topMargin: 20; left: parent.left; leftMargin: 20}
ColorOverlay {
visible: !darkMode
anchors.fill: parent
source: parent
color: colorText
antialiasing: true
}
} }


Text { Text {
Expand Down
11 changes: 0 additions & 11 deletions images.qrc
Expand Up @@ -2,15 +2,6 @@
<qresource prefix="/"> <qresource prefix="/">
<file>images/chargingscreen/icon-battery-lightning.png</file> <file>images/chargingscreen/icon-battery-lightning.png</file>
<file>images/popuplowbattery/icon-lowbattery.png</file> <file>images/popuplowbattery/icon-lowbattery.png</file>
<file>images/navigation/icon-area-0.png</file>
<file>images/navigation/icon-area-1.png</file>
<file>images/navigation/icon-area-2.png</file>
<file>images/navigation/icon-area-3.png</file>
<file>images/navigation/icon-favorites.png</file>
<file>images/navigation/icon-blind.png</file>
<file>images/navigation/icon-light.png</file>
<file>components/light/images/icon-light.png</file>
<file>images/navigation/icon-settings.png</file>
<file>images/components/fav-minus.png</file> <file>images/components/fav-minus.png</file>
<file>images/components/fav-plus.png</file> <file>images/components/fav-plus.png</file>
<file>images/components/close_button.png</file> <file>images/components/close_button.png</file>
Expand All @@ -20,11 +11,9 @@
<file>images/notification/icon-notification-normal.png</file> <file>images/notification/icon-notification-normal.png</file>
<file>images/settings/battery-level.png</file> <file>images/settings/battery-level.png</file>
<file>images/settings/average-power.png</file> <file>images/settings/average-power.png</file>
<file>images/navigation/bottom_gradient.png</file>
<file>images/loading/I.png</file> <file>images/loading/I.png</file>
<file>images/loading/O.png</file> <file>images/loading/O.png</file>
<file>images/loading/Y.png</file> <file>images/loading/Y.png</file>
<file>components/blind/images/icon-blind.png</file>
<file>components/blind/images/down-arrow.png</file> <file>components/blind/images/down-arrow.png</file>
<file>components/blind/images/stop.png</file> <file>components/blind/images/stop.png</file>
<file>components/blind/images/up-arrow.png</file> <file>components/blind/images/up-arrow.png</file>
Expand Down
Binary file removed images/navigation/bottom_gradient.png
Binary file not shown.
Binary file removed images/navigation/icon-area-0.png
Binary file not shown.
Binary file removed images/navigation/icon-area-1.png
Binary file not shown.
Binary file removed images/navigation/icon-area-2.png
Binary file not shown.
Binary file removed images/navigation/icon-area-3.png
Binary file not shown.
Binary file removed images/navigation/icon-blind.png
Binary file not shown.
Binary file removed images/navigation/icon-favorites.png
Binary file not shown.
Binary file removed images/navigation/icon-light.png
Binary file not shown.
Binary file removed images/navigation/icon-settings.png
Binary file not shown.

0 comments on commit f4f2c0b

Please sign in to comment.