Skip to content

Commit

Permalink
Channel cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Aug 15, 2024
1 parent ecd3416 commit 25691ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions application/components/ChannelDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ ItemDelegate {
Layout.topMargin: 2
Layout.bottomMargin: 2

color: text === "development" ? "orangered" :
text === "release-candidate" ? "blueviolet" : "limegreen"
color: text === "development" ? "blueviolet" :
text === "release" ? "limegreen" : "orangered"
}

TextLabel {
Expand Down
6 changes: 3 additions & 3 deletions application/components/HomeOverlay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ AbstractOverlay {

linkColor: {
if(Preferences.updateChannel === "development") {
return Theme.color.lightred2;
return "blueviolet";
} else if(Preferences.updateChannel === "release-candidate") {
return "blueviolet";
} else if(Preferences.updateChannel === "release") {
return Theme.color.lightgreen;
} else {
return Theme.color.lightorange2;
return Theme.color.lightred2;
}
}

Expand Down Expand Up @@ -323,7 +323,7 @@ AbstractOverlay {
} else if(Preferences.updateChannel === "release") {
str = "Release";
} else {
str = "Unknown";
str = Preferences.updateChannel.replace(/^wip-/, '');
}

let splitVersion = Backend.latestFirmwareVersion.number.split("-");
Expand Down
4 changes: 2 additions & 2 deletions backend/updateregistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const QStringList UpdateRegistry::channelNames() const
{
auto names = m_channels.keys();

// Move Development channel to the bottom of the list
// Move Development channel after release
if(names.first().startsWith(QStringLiteral("dev"))) {
names.move(0, names.size() - 1);
names.move(0, 1);
}

return names;
Expand Down

0 comments on commit 25691ce

Please sign in to comment.