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

Auto detect light/dark mode, changing the theme accordingly #380

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

wetfloo
Copy link

@wetfloo wetfloo commented Jan 10, 2025

Description

This adds the ability to detect terminal colors when hyfetch is invoked, thereby adapting its theme

Relevant Links

This partially resolves my issue

Screenshots

Screen.Recording.2025-01-10.at.23.06.14.mov

My new config

{
    "preset": "transgender",
    "mode": "rgb",
    "auto_detect_light_dark": true,
    "lightness": 0.65,
    "color_align": {
        "mode": "horizontal"
    },
    "backend": "fastfetch",
    "args": null,
    "distro": null,
    "pride_month_disable": false
}

If I have to write this in python, I'll scream (and then figure it out anyway)

@hykilpikonna
Copy link
Owner

Uhhh changes are good but please don't reformat the codebase 😭

Comment on lines +39 to +44
impl Default for TerminalTheme {
fn default() -> Self {
Self::Light
}
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think dark terminals are more popular so maybe setting this default to dark would be better?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, I'll change that

@wetfloo
Copy link
Author

wetfloo commented Jan 19, 2025

Uhhh changes are good but please don't reformat the codebase 😭

sorry cargo fmt just kinda does that...

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.

Support system light/dark mode
2 participants