Skip to content
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

Increase icon saturation by 30% for all editor icons #48644

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 11, 2021

More saturated icons go better with the new editor theme.

These color changes only apply when using a dark theme.

The editor icon saturation can still be adjusted in the Editor Settings. Setting the editor icon saturation setting to 0.77 should roughly match the old icon saturation.

Conversion script (requires `sd` in `PATH`)
#!/usr/bin/env python3

import subprocess
import glob

colors = {
    # old: new
    "#cea4f1": "#c38ef1",
    "#fc9c9c": "#fc7f7f",
    "#a5b7f3": "#8da5f3",
    "#708cea": "#4b70ea",
    "#a5efac": "#8eef97",
    "#ff7070": "#ff4545",
    "#ffeb70": "#ffe345",
    "#9dff70": "#80ff45",
    "#70ffb9": "#45ffa2",
    "#70deff": "#45d7ff",
    "#9f70ff": "#8045ff",
    "#ff70ac": "#ff4596",
    "#ff8484": "#ff5f5f",
    "#e1dc7a": "#e1da5b",
    "#84ffb1": "#5fff97",
    "#ffd684": "#ffca5f",
    "#40a2ff": "#0787ff",
    "#ff8484": "#ff5f5f",
    "#84ffb1": "#5fff97",
    "#84c2ff": "#5fb2ff",
    "#ea9568": "#ea7940",
    "#66f376": "#3cf34e",
    "#5792f6": "#2877f6",
    "#eae668": "#eae440",
    "#b76ef0": "#a448f0",
    "#fce844": "#fce00e",
    "#4490fc": "#0e71fc",
    "#c9cfd4": "#c6ced4",
    "#69ecbd": "#41ecad",
    "#8da6f0": "#6f91f0",
    "#7dc6ef": "#5abbef",
    "#61daf4": "#35d4f4",
    "#6ba7ec": "#4593ec",
    "#bd91f1": "#ac73f1",
    "#f191a5": "#f1738f",
    "#e286f0": "#de66f0",
    "#c4ec69": "#b9ec41",
    "#f77070": "#f74949",
    "#ec69a3": "#ec418e",
    "#ee7991": "#ee5677",
    "#e3ec69": "#e1ec41",
    "#f6a86e": "#f68f45",
    "#6993ec": "#417aec",
    "#69ec9a": "#41ec80",
    "#79f3e8": "#55f3e3",
    "#77edb1": "#54ed9e",
}

for old_color, new_color in colors.items():
    subprocess.call(["sd", "-s", "-f", "i", old_color, new_color, *glob.glob("**/*.svg", recursive=True)])

Preview

Before

Before

After

After

@Calinou Calinou requested review from a team as code owners May 11, 2021 16:03
@Calinou Calinou added this to the 4.0 milestone May 11, 2021
@Calinou Calinou force-pushed the editor-increase-icon-saturation branch from 1419801 to 830ef4b Compare May 11, 2021 16:14
More saturated icons go better with the new editor theme.

These color changes only apply when using a dark theme.

The editor icon saturation can still be adjusted in the Editor Settings.
Setting the editor icon saturation setting to 0.77 should roughly match
the old icon saturation.
@Calinou Calinou force-pushed the editor-increase-icon-saturation branch from 830ef4b to 7375a02 Compare May 11, 2021 16:15
@akien-mga akien-mga merged commit c321f6f into godotengine:master May 24, 2021
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants