![]() |
Changing color gamma in the slider ? (qml edit).
1 Attachment(s)
Hi to all.
I use this slider (thanks to Ancelad) to get color code (see image below) and for visual effects in the setting. And I want to change this color gamma to darker colors. This code I use, maybe someone can help me and edit this code (if it possible at all) ? Thanks Code:
Slider { |
Re: Changing color gamma in the slider ? (qml edit).
color = Qt.darker(oldColor) ?
|
Re: Changing color gamma in the slider ? (qml edit).
Quote:
I tried different variations, but nothing work... Of course I do something wrong... Please, can you edit the code above ? Thanks |
Re: Changing color gamma in the slider ? (qml edit).
Have you tried to play with the lightness value ? I guess a value of 0. should make all the range black, while a value of 1. will make the range white.
The saturation will make the colour be less coloured… I mean with a value of 0 and a lightness at 0.5, all the range will be grey. (I did try but I guess so) |
Re: Changing color gamma in the slider ? (qml edit).
Quote:
|
Re: Changing color gamma in the slider ? (qml edit).
Quote:
|
Re: Changing color gamma in the slider ? (qml edit).
Quote:
Qt.darker(Color.toHighlight(Color.fromHsva(customF ASTdialicon.framecolor/100, 1.0, 0.5, 1.0))) Now I see visual darker effect on the rectangle color and can get the darker color code (for next usage), but I still can't see the darker rainbow above the slider itself. It also ok if it not possible :) |
All times are GMT. The time now is 16:36. |
vBulletin® Version 3.8.8