-
-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[styles] Rename styles to default/vehicle/outdoors + light/dark #7264
Conversation
@euf PTAL |
This is great! New naming makes a lot more sense. Thank you so much for this job, I believe it would reduce confusion for future designers a lot. Could you please also tag me once again after this PR is merged? I would have to update a couple of issues and wiki pages which have direct links to master branch icons. |
Can you add git blame? |
Thanks!
? |
41adfa7
to
5ed8714
Compare
What do you want exactly? I don't understand |
Add your commit in .git blame ignore revs like explained here https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/ |
In that case, I guess a new
If the new style for example only has dark style, a fallback in |
6dba90a
to
9e10065
Compare
Rebased |
The light/dark styles differ in colors only while sharing all other mapcss files. So it makes more sense to put a "style name" first and then an optional color palette. |
If we go a way of different color palettes for a "night" (low-contrast) theme and a "dark" (daylight suitable) theme, then we'll be able to add a "night" subfolder, e.g.
But this actually means that atm we have a "light" and "night" palettes and no "dark" one. |
A different thing is the current "vehicle" style. If we'd call it "driving" indeed then its OK to leave "vehicle" as is? Or maybe better to rename to e.g. "driving-navigation" as its much more clear? |
a1c9b8b
to
2de3e85
Compare
Re icons folders rename. I don't think we'd ever use different icon sets for different styles (but different colors will stay for now). |
They already are in different folders. Source svg icons are in |
d3859e3
to
56a6a9e
Compare
Ready to merge? |
Rebased and ready to be merged |
drules_proto_vehicle_clear.bin | ||
drules_proto_default_light.bin | ||
drules_proto_default_dark.bin | ||
drules_proto_vehicle_light.bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm why there is no outdoors style here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would guess because the desktop application has no outdoors style?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it has, but there is no UI for switching;
one has to type ?olight
in the search - it works well
"drules_proto_default_dark.bin", | ||
"drules_proto_default_dark.txt", | ||
"drules_proto_vehicle_light.bin", | ||
"drules_proto_vehicle_light.txt", | ||
"drules_proto_vehicle_dark.bin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also no outdoors style here
(what does this script do?)
paths = ['clear/style-clear', 'clear/style-night', 'vehicle/style-clear', 'vehicle/style-night'] | ||
suffixes = ['_clear', '_dark', '_vehicle_clear', '_vehicle_dark'] | ||
paths = ['default/light', 'default/dark', 'vehicle/light', 'vehicle/dark'] | ||
suffixes = ['_default_light', '_default_dark', '_vehicle_light', '_vehicle_dark'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know what these python tools do. I just changed the styles names. I don't know why there's no outdoors styles in there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pastk it's the question to you )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script is used for designer tool. Since the designer is broken, we can ignore any inconsistency here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to revive designer back.
MapStyle::MapStyleVehicleClear, | ||
static std::vector<MapStyle> styles = {MapStyle::MapStyleDefaultLight, | ||
MapStyle::MapStyleDefaultDark, | ||
MapStyle::MapStyleVehicleLight, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vng do we need the outdoors style here too?
@@ -25,7 +25,7 @@ class TransitColorsHolder | |||
dp::Color GetColor(std::string const & name) const | |||
{ | |||
auto const style = GetStyleReader().GetCurrentStyle(); | |||
auto const isDarkStyle = style == MapStyle::MapStyleDark || style == MapStyle::MapStyleVehicleDark; | |||
auto const isDarkStyle = style == MapStyle::MapStyleDefaultDark || style == MapStyle::MapStyleVehicleDark; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outdoors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MapStyleOutdoorsDark?
Right, I've confused auto-generated skins with e.g. Still, it'd be better to move |
a419cba
to
32ad4e5
Compare
I think that's a good idea. Can be done in a separate PR |
@vng @biodranik could you review please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to squash the first 4 commits into one, and remove the last one to add it after the merge.
LGTM otherwise. @vng WDYT?
.git-blame-ignore-revs
Outdated
@@ -1,3 +1,5 @@ | |||
6aa73face8b5eb8e026cfafa40d1983d4a0502c0 | |||
480fa6c2fcf53be296504ac6ba8e6b3d70f92b42 | |||
a6ede2b1466f0c9d8a443600ef337ba6b5832e58 | |||
# [styles] Move all icons to renamed styles folders | |||
4b39ab2413a461376b04572bc51de18e609a7b19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hash can change after the rebase, it's safer to add this commit after the merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove this commit and make a new PR after the merge
@@ -25,7 +25,7 @@ class TransitColorsHolder | |||
dp::Color GetColor(std::string const & name) const | |||
{ | |||
auto const style = GetStyleReader().GetCurrentStyle(); | |||
auto const isDarkStyle = style == MapStyle::MapStyleDark || style == MapStyle::MapStyleVehicleDark; | |||
auto const isDarkStyle = style == MapStyle::MapStyleDefaultDark || style == MapStyle::MapStyleVehicleDark; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MapStyleOutdoorsDark?
paths = ['clear/style-clear', 'clear/style-night', 'vehicle/style-clear', 'vehicle/style-night'] | ||
suffixes = ['_clear', '_dark', '_vehicle_clear', '_vehicle_dark'] | ||
paths = ['default/light', 'default/dark', 'vehicle/light', 'vehicle/dark'] | ||
suffixes = ['_default_light', '_default_dark', '_vehicle_light', '_vehicle_dark'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pastk it's the question to you )
Squashed and rebased |
|
Okay. Just let me know when you are ready to merge and I can rebase the branch if necessary |
@dvdmrtnz as we're renaming e.g. |
@vng please take a look when you have time. |
Please rebase and merge |
clear/style-clear -> default/style-light clear/style-night -> default/style-dark vehicle/style-clear -> vehicle/style-light vehicle/style-night -> vehicle/style-dark outdoors/style-clear -> outdoors/style-light outdoors/style-night -> outdoors/style-dark Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
@rtsisyk ready to merge |
The current styles naming scheme is inconsistent:
data/styles
folder there is aclear
style at the same level of thevehicle
andoutdoors
styles, but then each of these styles is divided intoclear
/night
, which is confusing as the same wordclear
is used on two different levels.clear
style gets no name and the lower levels useclear
/dark
.?light
/?dark
.--
I propose changing the naming scheme to this:
Light/Dark is the naming convention used by both iOS (https://developer.apple.com/design/human-interface-guidelines/dark-mode) and Android (https://developer.android.com/develop/ui/views/theming/darktheme?hl=en#change-themes) in their guidelines.