Formatting
This commit is contained in:
parent
80c7f663f1
commit
916d86cd97
3 changed files with 8 additions and 11 deletions
|
|
@ -96,7 +96,7 @@ NLoader {
|
|||
Column {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.marginSmall * scaling
|
||||
spacing: 2 * scaling // Minimal spacing between tabs
|
||||
spacing: 2 * scaling // Minimal spacing between tabs
|
||||
|
||||
Repeater {
|
||||
id: sections
|
||||
|
|
@ -106,7 +106,7 @@ NLoader {
|
|||
id: tabItem
|
||||
readonly property bool selected: index === settingsPanel.currentTabIndex
|
||||
width: parent.width
|
||||
height: 32 * scaling // Back to original height
|
||||
height: 32 * scaling // Back to original height
|
||||
radius: Style.radiusSmall * scaling
|
||||
color: selected ? Colors.accentPrimary : (tabItem.hovering ? Colors.highlight : "transparent")
|
||||
border.color: "transparent"
|
||||
|
|
@ -212,4 +212,4 @@ NLoader {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,22 +40,19 @@ Singleton {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
Timer {
|
||||
id: updateTimer
|
||||
interval: 60 * 1000
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
updateWeather();
|
||||
updateWeather()
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------
|
||||
function init() {
|
||||
// does nothing but ensure the singleton is created
|
||||
function init() {// does nothing but ensure the singleton is created
|
||||
}
|
||||
|
||||
|
||||
// --------------------------------
|
||||
function updateWeather() {
|
||||
if ((data.weatherLastFetch === "") || (Time.timestamp >= data.weatherLastFetch + weatherUpdateFrequency)) {
|
||||
|
|
@ -135,7 +132,7 @@ Singleton {
|
|||
xhr.send()
|
||||
}
|
||||
|
||||
// --------------------------------
|
||||
// --------------------------------
|
||||
function errorCallback(message) {
|
||||
console.error(message)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ Singleton {
|
|||
}
|
||||
|
||||
// Returns a Unix Timestamp (in seconds)
|
||||
readonly property string timestamp: {
|
||||
return Math.floor(Date.now() / 1000);
|
||||
readonly property string timestamp: {
|
||||
return Math.floor(Date.now() / 1000)
|
||||
}
|
||||
|
||||
// Format an easy to read approximate duration ex: 4h32m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue