Skip to content

Brightness controls, and use uniform icon styles#2

Open
nicdumz wants to merge 3 commits intojamesridgway:mainfrom
nicdumz:main
Open

Brightness controls, and use uniform icon styles#2
nicdumz wants to merge 3 commits intojamesridgway:mainfrom
nicdumz:main

Conversation

@nicdumz
Copy link
Contributor

@nicdumz nicdumz commented Nov 7, 2021

Hey James,

I wonder what you'd think of this PR. The first commit adds brightness controls, something that I generally use on my KeyLight.

As I was shopping around for icons to use for that commit, I found https://fonts.google.com/icons available under Apache 2.0, and wondered if we wanted to essentially just use icons from this set to have some kind of uniform style. (Reasoning: we would have tons of various icons available from that set, available in a consistent style).

I noticed that you had some blue in your on/off icons and in a sense I'm removing that part with my suggestion. If you care about color, I wonder if we'd want to add a color setting, and style on the fly (replacing white strokes by whatever color the user sets, e.g. color: 2272F0), perhaps as follow-up patch.

I don't care strongly about the style of icons, so would be happy to drop the second commit if you'd rather keep what you have at the moment, please let me know. (Last, as a disclaimer, I do work for Google at the moment but I'm not an UX person / I have no particular affiliation with fonts.google.com ; I just happen to find this convenient to use.)

Cheers!

This adds two Controls, `brightness.Increase` and `brightness.Decrease`,
which can increase / decrease brightness respectively.

Icons are taken from https://fonts.google.com/icons (SVGs, reexported as
plain white-on-transparent 512x512 PNG outlines). Those icons are free,
available under an Apache 2.0 license.
Use the 'lightbulb' material icon, outlined for off, and filled for on.

Icons are from https://fonts.google.com/icons (free under Apache 2.0),
but have been re-exported as white-on-transparent 512x512 pngs.
@nicdumz
Copy link
Contributor Author

nicdumz commented Nov 21, 2021

Rebased :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant