Use current accent colour to set ColorDialog object in colour picker

This commit initialises the state of the accent colour picker using the current accent colour, this way the user can adjust it more precisely.


(cherry picked from commit 43cee1029d)
wilder-5.24
Yari Polla 4 years ago committed by Nate Graham
parent b1577e1001
commit bc9acf7079
  1. 1
      kcms/colors/package/contents/ui/main.qml

@ -239,6 +239,7 @@ KCM.GridViewKCM {
title: i18n("Choose custom accent color")
// User must either choose a colour or cancel the operation before doing something else
modality: Qt.ApplicationModal
color: kcm.accentColor
onAccepted: {
kcm.accentColor = colorDialog.color
}

Loading…
Cancel
Save