Skip to content

Commit

Permalink
refactor(graph): use green instead of red color
Browse files Browse the repository at this point in the history
  • Loading branch information
orblazer committed Apr 27, 2023
1 parent f40c931 commit 809467e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package/contents/ui/config/ConfigAppearance.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ QtLayouts.ColumnLayout {
property alias cfg_netUpColor: netUpColor.value

property color primaryColor: theme.highlightColor
property color negativeColor: theme.negativeTextColor
property color positiveColor: theme.positiveTextColor

PlasmaComponents.TabBar {
id: bar
Expand Down Expand Up @@ -212,7 +212,7 @@ QtLayouts.ColumnLayout {
Kirigami.FormData.label: i18n("Swap color:")

dialogTitle: i18n("Choose Swap graph color")
defaultColor: negativeColor
defaultColor: positiveColor
}

RMControls.ColorSelector {
Expand All @@ -227,7 +227,7 @@ QtLayouts.ColumnLayout {
Kirigami.FormData.label: i18n("Network sending color:")

dialogTitle: i18n("Choose network sending graph color")
defaultColor: negativeColor
defaultColor: positiveColor
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Item {

property bool vertical: (plasmoid.formFactor == PlasmaCore.Types.Vertical)
property color primaryColor: theme.highlightColor
property color negativeColor: theme.negativeTextColor
property color positiveColor: theme.positiveTextColor

// Settings properties
property bool verticalLayout: plasmoid.configuration.verticalLayout
Expand All @@ -47,9 +47,9 @@ Item {
// Colors settings properties
property color cpuColor: plasmoid.configuration.customCpuColor ? plasmoid.configuration.cpuColor : primaryColor
property color ramColor: plasmoid.configuration.customRamColor ? plasmoid.configuration.ramColor : primaryColor
property color swapColor: plasmoid.configuration.customSwapColor ? plasmoid.configuration.swapColor : negativeColor
property color swapColor: plasmoid.configuration.customSwapColor ? plasmoid.configuration.swapColor : positiveColor
property color netDownColor: plasmoid.configuration.customNetDownColor ? plasmoid.configuration.netDownColor : primaryColor
property color netUpColor: plasmoid.configuration.customNetUpColor ? plasmoid.configuration.netUpColor : negativeColor
property color netUpColor: plasmoid.configuration.customNetUpColor ? plasmoid.configuration.netUpColor : positiveColor

// Component properties
property int containerCount: (showCpuMonitor ? 1 : 0) + (showRamMonitor ? 1 : 0) + (showNetMonitor ? 1 : 0)
Expand Down

0 comments on commit 809467e

Please sign in to comment.