visible: active
sourceComponent: CheckBox {
// TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette.window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ // create a custom style and do it for all components globally.
+ //
+ // Additionally, we need to override the entire palette when we
+ // set one palette property, as otherwise we default back to the
+ // theme palette -- not the parent palette
+ palette {
+ text: Style.ncTextColor
+ windowText: Style.ncTextColor
+ buttonText: Style.ncTextColor
+ brightText: Style.ncTextBrightColor
+ highlight: Style.lightHover
+ highlightedText: Style.ncTextColor
+ light: Style.lightHover
+ midlight: Style.ncSecondaryTextColor
+ mid: Style.darkerHover
+ dark: Style.menuBorder
+ button: Style.buttonBackgroundColor
+ window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ base: Style.backgroundColor
+ toolTipBase: Style.backgroundColor
+ toolTipText: Style.ncTextColor
+ }
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
indicator.width: moreMenu.indicatorItemWidth
anchors.right: parent.right
// TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette.window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ // create a custom style and do it for all components globally.
+ //
+ // Additionally, we need to override the entire palette when we
+ // set one palette property, as otherwise we default back to the
+ // theme palette -- not the parent palette
+ palette {
+ text: Style.ncTextColor
+ windowText: Style.ncTextColor
+ buttonText: Style.ncTextColor
+ brightText: Style.ncTextBrightColor
+ highlight: Style.lightHover
+ highlightedText: Style.ncTextColor
+ light: Style.lightHover
+ midlight: Style.ncSecondaryTextColor
+ mid: Style.darkerHover
+ dark: Style.menuBorder
+ button: Style.buttonBackgroundColor
+ window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ base: Style.backgroundColor
+ toolTipBase: Style.backgroundColor
+ toolTipText: Style.ncTextColor
+ }
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
Layout.fillWidth: true
// TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette.window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ // create a custom style and do it for all components globally.
+ //
+ // Additionally, we need to override the entire palette when we
+ // set one palette property, as otherwise we default back to the
+ // theme palette -- not the parent palette
+ palette {
+ text: Style.ncTextColor
+ windowText: Style.ncTextColor
+ buttonText: Style.ncTextColor
+ brightText: Style.ncTextBrightColor
+ highlight: Style.lightHover
+ highlightedText: Style.ncTextColor
+ light: Style.lightHover
+ midlight: Style.ncSecondaryTextColor
+ mid: Style.darkerHover
+ dark: Style.menuBorder
+ button: Style.buttonBackgroundColor
+ window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ base: Style.backgroundColor
+ toolTipBase: Style.backgroundColor
+ toolTipText: Style.ncTextColor
+ }
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
Layout.fillWidth: true
// TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette.window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ // create a custom style and do it for all components globally.
+ //
+ // Additionally, we need to override the entire palette when we
+ // set one palette property, as otherwise we default back to the
+ // theme palette -- not the parent palette
+ palette {
+ text: Style.ncTextColor
+ windowText: Style.ncTextColor
+ buttonText: Style.ncTextColor
+ brightText: Style.ncTextBrightColor
+ highlight: Style.lightHover
+ highlightedText: Style.ncTextColor
+ light: Style.lightHover
+ midlight: Style.ncSecondaryTextColor
+ mid: Style.darkerHover
+ dark: Style.menuBorder
+ button: Style.buttonBackgroundColor
+ window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ base: Style.backgroundColor
+ toolTipBase: Style.backgroundColor
+ toolTipText: Style.ncTextColor
+ }
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
Layout.fillWidth: true
// TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette.window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ // create a custom style and do it for all components globally.
+ //
+ // Additionally, we need to override the entire palette when we
+ // set one palette property, as otherwise we default back to the
+ // theme palette -- not the parent palette
+ palette {
+ text: Style.ncTextColor
+ windowText: Style.ncTextColor
+ buttonText: Style.ncTextColor
+ brightText: Style.ncTextBrightColor
+ highlight: Style.lightHover
+ highlightedText: Style.ncTextColor
+ light: Style.lightHover
+ midlight: Style.ncSecondaryTextColor
+ mid: Style.darkerHover
+ dark: Style.menuBorder
+ button: Style.buttonBackgroundColor
+ window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
+ base: Style.backgroundColor
+ toolTipBase: Style.backgroundColor
+ toolTipText: Style.ncTextColor
+ }
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding