From kde-panel-devel Mon Aug 14 15:25:20 2017 From: Sebastian =?ISO-8859-1?Q?K=FCgler?= Date: Mon, 14 Aug 2017 15:25:20 +0000 To: kde-panel-devel Subject: Re: Implementing a plasma colorscheme generator Message-Id: <3264374.RiLz01zfXD () miro> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=150272433005869 On zaterdag 5 augustus 2017 17:10:59 CEST Andrew wrote: > On Friday, August 4, 2017 8:16:57 PM EDT Andrew wrote: > > On Friday, August 4, 2017 7:03:43 PM EDT Aleix Pol wrote: > > > On Fri, Aug 4, 2017 at 5:13 PM, Andrew wrot= e: > > > >> > On donderdag 3 augustus 2017 18:45:24 CEST Aleix Pol wrote: > > > >> >> On Thu, Aug 3, 2017 at 5:48 PM, Marco Martin =20 wrote: > > > >> >> > On Thursday 03 August 2017 11:51:08 Sebastian K=C3=BCgler wro= te: > > > >> >> >> Perhaps a nice addition to plasma-sdk? We already have > > > >> >> >> cuttlefish, > > > >> >> >> theme explorer, and the Look and Feel creator thing there, a > > > >> >> >> color > > > >> >> >> scheme creation tool looks right up its alley... > > > >> >> >=20 > > > >> >> > theme explorer has a color scheme editor too, so you can just > > > >> >> > have it > > > >> >> > as a feature of theme-explorer > > > >> >>=20 > > > >> >> I'd say the use-case for such a program is to be able to change > > > >> >> the > > > >> >> color scheme as the background image changes, not something peo= ple > > > >> >> will want to use because they can't actually create a color > > > >> >> scheme. > > > >> >=20 > > > >> > Right. So this could be an option in the Colors KCM, but then it > > > >> > should be > > > >> > triggered by wallpaper changes, which also means by Activity > > > >> > changes. > > > >> > Also, what about multiscreens? They have different wallpapers... > > > >>=20 > > > >> *Shrug* :) > > > >>=20 > > > >> Andrew? > > > >=20 > > > > Currently the program generates a colorscheme file, that can then be > > > > selected in the Colors KCM. I think it would be best to add it as an > > > > option to the KCM, since changing the colorscheme with the backgrou= nd > > > > would get distracting and hard to do. > > > >=20 > > > > What I think I'll do is make it so you choose a single image to > > > > generate a > > > > colorscheme from, which is then placed in the local directory of > > > > colorschemes and is selected in the colors KCM. > > >=20 > > > Then maybe you just want to have a specific application that does that > > > and has an "apply" button on it? Sounds like a random feature to have > > > in a KCM to me: A button to open an image sounds intricate. > > >=20 > > > Aleix > >=20 > > Agreed. I guess I'll just make the application callable from the KCM, a= nd > > have a colorscheme preview and an apply button there. > Follow up question: should I put my code in the Colors KCM's directory, or > elsewhere? My idea is to have a button that says "Generate colorscheme fr= om > Image" in the KCM, which opens a seperate window where you can select an > image and apply the colorscheme. I'm wondering if it would be the best option to have a small tool, a binary= =20 exe wich does that, and offer the option in the colors KCM if the tool is=20 installed (and likewise, perhaps offer the option to adjust color scheme to= =20 the wallpaper from the wallpaper dialog in that case (if we deem that usefu= l),=20 and in plasma-sdk somehow? Putting it into a library to have the code shared sounds a bit meh since it= 's=20 super specific, the API would have to be stable, and I'm not sure if it's=20 actually all that useful having a compile time dependency compared to a=20 runtime dep. =2D-=20 sebas http://www.kde.org | http://vizZzion.org