We have moved to a new Sailfish OS Forum. Please start new discussions there.
16

More colors in Silica color picker

asked 2014-01-22 02:22:29 +0200

javispedro gravatar image

updated 2014-01-22 12:57:26 +0200

foss4ever gravatar image

The current color picker available in Silica components has 3x5 colors only, yet it still manages to not fit entirely in the device's screen (thus, it is flickable vertically).

My proposal is to add more colors to it. Either by having more rows (the dialog is already flickable!) or by having a "custom color" option available. Maybe as a pulley menu at the bottom end of the dialog.

edit retag flag offensive close delete

Comments

i'd like the custom color option :)

mgbler ( 2014-05-17 13:17:13 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2014-05-17 00:14:26 +0200

kimmoli gravatar image

rather old question but... Is this plausible solution for this?

https://github.com/skvark/ChameleonHalf/blob/master/qml/pages/Main.qml#L59

edit flag offensive delete publish link more

Comments

I think that this should work at least as a workaround for the time being :)

skvark ( 2014-05-20 00:34:13 +0200 )edit

Yes! Now time to replace the stock Silica compoonent :)

javispedro ( 2014-05-23 00:39:08 +0200 )edit
1

I implemented it like this;

property var myColors: [ "#ff0080", "#ff0000", "#ff8000", "#ffff00", "#00ff00",.....

var dialog = pageStack.push("Sailfish.Silica.ColorPickerDialog", { "colors": myColors })
kimmoli ( 2014-05-23 00:49:04 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-01-22 02:22:29 +0200

Seen: 424 times

Last updated: May 17 '14