updating styles to use theme colours

This commit is contained in:
erinn 2020-05-19 16:33:12 -07:00
parent 1c2b8e2382
commit 74ebd6b315
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import QtQml.Models 2.13
import "fonts/MutantStandard.js" as Mutant import "fonts/MutantStandard.js" as Mutant
import "controls" import "controls"
import "../theme" import "theme"
Item { Item {
id: root id: root
@ -24,7 +24,7 @@ Item {
visible: height != 0 visible: height != 0
Rectangle { Rectangle {
color: theme.backgroundPaneColor color: Theme.backgroundPaneColor
anchors.fill: parent anchors.fill: parent
} }

View File

@ -5,12 +5,13 @@ import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import QtQuick.Window 2.11 import QtQuick.Window 2.11
import QtQuick.Controls 1.4 import QtQuick.Controls 1.4
import "../theme"
Rectangle { Rectangle {
width: img.width + 10 width: img.width + 10
height: img.height + 5 height: img.height + 5
property string emoji property string emoji
color: selected ? windowItem.cwtch_color : windowItem.cwtch_background_color color: selected ? Theme.defaultButtonActiveColor : Theme.backgroundPaneColor
property bool selected property bool selected
property string locale property string locale