-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the GUI code. Add Mark II specific QML files.
- Loading branch information
1 parent
10af4d3
commit 8844017
Showing
22 changed files
with
704 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import QtQuick.Layouts 1.4 | ||
import QtQuick 2.4 | ||
import QtQuick.Controls 2.0 | ||
import org.kde.kirigami 2.4 as Kirigami | ||
|
||
import Mycroft 1.0 as Mycroft | ||
|
||
Mycroft.Delegate { | ||
id: root | ||
bottomPadding: 32 | ||
leftPadding: 32 | ||
rightPadding: 32 | ||
topPadding: 32 | ||
|
||
function getWeatherImagery(weathercode) { | ||
switch(weathercode) { | ||
case 0: | ||
return "images/sunny.svg"; | ||
break | ||
case 1: | ||
return "images/partly_cloudy.svg"; | ||
break | ||
case 2: | ||
return "images/cloudy.svg"; | ||
break | ||
case 3: | ||
return "images/rain.svg"; | ||
break | ||
case 4: | ||
return "images/rain.svg"; | ||
break | ||
case 5: | ||
return "images/storm.svg"; | ||
break | ||
case 6: | ||
return "images/snow.svg"; | ||
break | ||
case 7: | ||
return "images/cloudy.svg"; | ||
break | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.