Skip to content
Permalink
Browse files

Added icons to style singleton

  • Loading branch information
martonborzak committed Jan 1, 2020
1 parent bf357c3 commit af4a183dc3a235037ced13a0dfd790e7d3ad8a0c
@@ -86,11 +86,11 @@ Rectangle {
color: Style.colorText
text: {
if (list[index] == "PLAY")
return "\uE903"
return Style.icons.music
else if (list[index] == "QUEUE")
return "\uE907"
return Style.icons.playlist
else if (list[index] == "SONGRADIO")
return "\uE90A"
return Style.icons.radio
else
return ""
}
@@ -489,7 +489,7 @@ Item {
Text {
id: closeButton
color: Style.colorText
text: "\uE916"
text: Style.icons.down_arrow
renderType: Text.NativeRendering
width: 70
height: 70
@@ -527,7 +527,7 @@ Item {

Text {
color: Style.colorText
text: "\uE909"
text: Style.icons.prev
renderType: Text.NativeRendering
width: 85
height: 85
@@ -563,7 +563,7 @@ Item {

Text {
color: Style.colorText
text: "\uE905"
text: Style.icons.pause
renderType: Text.NativeRendering
width: 85
height: 85
@@ -580,7 +580,7 @@ Item {

Text {
color: Style.colorText
text: "\uE906"
text: Style.icons.play
renderType: Text.NativeRendering
width: 85
height: 85
@@ -623,7 +623,7 @@ Item {

Text {
color: Style.colorText
text: "\uE904"
text: Style.icons.next
renderType: Text.NativeRendering
width: 85
height: 85
@@ -427,7 +427,7 @@ Rectangle {
id: closeButton
color: Style.colorText
visible: buttonContainer.state == "open"
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -228,7 +228,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE914"
text: Style.icons.blind
renderType: Text.NativeRendering
width: 85
height: 85
@@ -112,7 +112,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE914"
text: Style.icons.blind
renderType: Text.NativeRendering
width: 85
height: 85
@@ -216,7 +216,7 @@ Rectangle {

Text {
color: Style.colorText
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -30,7 +30,7 @@ import "qrc:/components" as Comp

Comp.ButtonBase {
id: climateButton
icon: "\uE913"
icon: Style.icons.climate
cardLoader.source: "qrc:/components/climate/ui/Card.qml"

// override default settings
@@ -281,7 +281,7 @@ Item {
Text {
id: icon
color: Style.colorText
text: "\uE913"
text: Style.icons.climate
renderType: Text.NativeRendering
width: 85
height: 85
@@ -85,11 +85,11 @@ Rectangle {
text: {
console.debug(list[index])
if (list[index]["original"] === "Off")
return "\uE908"
return Style.icons.power_on
else if (list[index]["original"] === "Heat")
return "\uE91F"
return Style.icons.heat
else if (list[index]["original"] === "Cool")
return "\uE91E"
return Style.icons.cool
}
renderType: Text.NativeRendering
width: 70
@@ -226,7 +226,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85
@@ -145,7 +145,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85
@@ -222,7 +222,7 @@ Rectangle {
Text {
id: closeButton
color: Style.colorText
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -348,7 +348,7 @@ Rectangle {
Text {
id: icon_b
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85
@@ -466,7 +466,7 @@ Rectangle {
Text {
id: closeButton_b
color: Style.colorText
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -116,7 +116,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85
@@ -180,7 +180,7 @@ Rectangle {
Text {
id: closeButton
color: Style.colorText
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -59,7 +59,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85
@@ -117,7 +117,7 @@ Rectangle {
Text {
id: closeButton
color: Style.colorText
text: "\uE915"
text: Style.icons.close
renderType: Text.NativeRendering
width: 70
height: 70
@@ -88,7 +88,7 @@ Item {

Text {
color: Style.colorText
text: "\uE906"
text: Style.icons.play
renderType: Text.NativeRendering
width: 70
height: 70
@@ -33,7 +33,7 @@ import MediaPlayerUtils 1.0

Comp.ButtonBase {
id: mediaplayerButton
icon: "\uE903"
icon: Style.icons.music
cardLoader.source: "qrc:/components/media_player/ui/Card.qml"

// override default settings
@@ -275,7 +275,7 @@ Rectangle {
Text {
color: Style.colorText
opacity: cardSwipeView.currentIndex === 0 ? 1 : 0.5
text: "\uE900"
text: Style.icons.home
renderType: Text.NativeRendering
width: 60
height: 60
@@ -301,7 +301,7 @@ Rectangle {
visible: obj.isSupported(MediaPlayer.F_SEARCH) ? true : false
color: Style.colorText
opacity: cardSwipeView.currentIndex === features.indexOf("SEARCH") ? 1 : 0.5
text: "\uE90C"
text: Style.icons.search
renderType: Text.NativeRendering
width: 60
height: 60
@@ -327,7 +327,7 @@ Rectangle {
visible: obj.isSupported(MediaPlayer.F_LIST) ? true : false
color: Style.colorText
opacity: cardSwipeView.currentIndex === features.indexOf("LIST") ? 1 : 0.5
text: "\uE907"
text: Style.icons.playlist
renderType: Text.NativeRendering
width: 60
height: 60
@@ -353,7 +353,7 @@ Rectangle {
visible: obj.isSupported(MediaPlayer.F_SPEAKER_CONTROL) ? true : false
color: Style.colorText
opacity: cardSwipeView.currentIndex === features.indexOf("SPEAKER_CONTROL") ? 1 : 0.5
text: "\uE90D"
text: Style.icons.speaker
renderType: Text.NativeRendering
width: 60
height: 60
@@ -165,7 +165,7 @@ Item {

Text {
color: Style.colorText
text: "\uE909"
text: Style.icons.prev
renderType: Text.NativeRendering
width: 85
height: 85
@@ -199,7 +199,7 @@ Item {

Text {
color: Style.colorText
text: "\uE905"
text: Style.icons.pause
renderType: Text.NativeRendering
width: 85
height: 85
@@ -216,7 +216,7 @@ Item {

Text {
color: Style.colorText
text: "\uE906"
text: Style.icons.play
renderType: Text.NativeRendering
width: 85
height: 85
@@ -259,7 +259,7 @@ Item {

Text {
color: Style.colorText
text: "\uE904"
text: Style.icons.next
renderType: Text.NativeRendering
width: 85
height: 85
@@ -222,7 +222,7 @@ Rectangle {
Text {
id: backButton
color: Style.colorText
text: "\uE917"
text: Style.icons.left_arrow
renderType: Text.NativeRendering
width: 70
height: 70
@@ -141,7 +141,7 @@ Rectangle {
Text {
id: searchIcon
color: Style.colorBackground
text: "\uE90C"
text: Style.icons.search
renderType: Text.NativeRendering
width: 70
height: 70
@@ -667,7 +667,7 @@ Rectangle {
Text {
id: backButton
color: Style.colorText
text: "\uE917"
text: Style.icons.left_arrow
renderType: Text.NativeRendering
width: 70
height: 70
@@ -23,13 +23,14 @@
import QtQuick 2.11
import QtQuick.Controls 2.5
import QtGraphicalEffects 1.0
import Style 1.0

import "qrc:/scripts/helper.js" as JSHelper
import "qrc:/components" as Comp

Comp.ButtonBase {
id: remoteButton
icon: "\uE90B"
icon: Style.icons.remote
cardLoader.source: "qrc:/components/remote/ui/ir/Card.qml" //getSource()

function getSource() {
@@ -216,7 +216,7 @@ Rectangle {

Text {
color: Style.colorText
text: "\uE91B"
text: Style.icons.circle
width: 60
height: 60
verticalAlignment: Text.AlignVCenter
@@ -250,7 +250,7 @@ Rectangle {

Text {
color: Style.colorText
text: "\uE91D"
text: Style.icons.square
width: 60
height: 60
verticalAlignment: Text.AlignVCenter
@@ -285,7 +285,7 @@ Rectangle {

Text {
color: Style.colorText
text: "\uE91C"
text: Style.icons.square_full
width: 60
height: 60
verticalAlignment: Text.AlignVCenter
@@ -40,7 +40,7 @@ Item {

Text {
color: Style.colorLine
text: "\uE908"
text: Style.icons.power_on
renderType: Text.NativeRendering
width: 70
height: 70
@@ -206,7 +206,7 @@ Rectangle {
Text {
id: icon
color: Style.colorText
text: "\uE901"
text: Style.icons.light
renderType: Text.NativeRendering
width: 85
height: 85

0 comments on commit af4a183

Please sign in to comment.
You can’t perform that action at this time.