Colors: slight rework of the default colorscheme and overall colors usage
This commit is contained in:
parent
ef5fff12d1
commit
63fb5bd290
13 changed files with 48 additions and 29 deletions
|
|
@ -21,19 +21,23 @@ NBox {
|
|||
// }
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
Layout.fillHeight: true
|
||||
anchors.margins: Style.marginLarge * scaling
|
||||
|
||||
// Fallback
|
||||
ColumnLayout {
|
||||
id: fallback
|
||||
|
||||
visible: !main.visible
|
||||
spacing: Style.marginMedium * scaling
|
||||
spacing: Style.marginSmall * scaling
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "music_note"
|
||||
text: "album"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: 28 * scaling
|
||||
color: Colors.textSecondary
|
||||
|
|
@ -44,6 +48,7 @@ NBox {
|
|||
color: Colors.textDisabled
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
|
@ -117,11 +122,11 @@ NBox {
|
|||
gradient: Gradient {
|
||||
GradientStop {
|
||||
position: 0.0
|
||||
color: Colors.backgroundTertiary
|
||||
color: Colors.backgroundSecondary
|
||||
}
|
||||
GradientStop {
|
||||
position: 1.0
|
||||
color: Colors.backgroundSecondary
|
||||
color: Colors.backgroundTertiary
|
||||
}
|
||||
}
|
||||
border.color: Colors.outline
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ NBox {
|
|||
text: weatherReady ? Location.weatherSymbolFromCode(Location.data.weather.current_weather.weathercode) : ""
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXXL * 1.5 * scaling
|
||||
color: Colors.accentSecondary
|
||||
color: Colors.accentPrimary
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
@ -41,8 +41,8 @@ NBox {
|
|||
const chunks = Settings.data.location.name.split(",")
|
||||
return chunks[0]
|
||||
}
|
||||
font.pointSize: Style.fontSizeLarger * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
|
@ -53,11 +53,13 @@ NBox {
|
|||
return ""
|
||||
}
|
||||
var temp = Location.data.weather.current_weather.temperature
|
||||
var suffix = "C"
|
||||
if (Settings.data.location.useFahrenheit) {
|
||||
temp = Location.celsiusToFahrenheit(temp)
|
||||
var suffix = "F"
|
||||
}
|
||||
temp = Math.round(temp)
|
||||
return `${temp}°`
|
||||
return `${temp}°${suffix}`
|
||||
}
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
|
|
@ -95,7 +97,7 @@ NBox {
|
|||
text: Location.weatherSymbolFromCode(Location.data.weather.daily.weathercode[index])
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
color: Colors.textSecondary
|
||||
color: Colors.accentPrimary
|
||||
}
|
||||
NText {
|
||||
text: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue