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

fix(config): options.darken.floats is not used #345

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

tmillr
Copy link
Member

@tmillr tmillr commented Jul 11, 2024

Problem: options.darken.floats isn't used anywhere and NormalFloat is unconditionally set to spec.bg0 (darker background).

Solution: Only set bg of NormalFloat to bg0 if options.darken.floats is true, otherwise, set it to bg1 (default background).

Problem: Floating windows are darkened unconditionally and options.darken.floats appears to be documented as being true by default (see options.darken section of Usage.md), however, the actual default in config.lua is false. In README.md, the default value is properly documented as being false.

Solution: Change the default value of options.darken.floats to true. Update the documented default to true. This is not a breaking change because this is currently the default behavior.

@tmillr tmillr force-pushed the fix-options-darken-floats branch 2 times, most recently from 6970f32 to 57f8d90 Compare July 12, 2024 00:39
Problem: `options.darken.floats` isn't used anywhere and `NormalFloat`
         is unconditionally set to `spec.bg0` (darker background).

Solution: Only set `bg` of `NormalFloat` to `bg0` if
          `options.darken.floats` is `true`, otherwise, set it to `bg1`
          (default background).

Problem: Floating windows are darkened unconditionally and
         `options.darken.floats` appears to be documented as being
         `true` by default (see `options.darken` section of Usage.md),
         however, the actual default in `config.lua` is `false`. In
         README.md, the default value is properly documented as being
         `false`.

Solution: Change the default value of `options.darken.floats` to `true`.
          Update the documented default to `true`. This is not a
          breaking change because this is currently the default
          behavior.
@tmillr tmillr force-pushed the fix-options-darken-floats branch from 57f8d90 to 24fc179 Compare July 12, 2024 01:14
@tmillr tmillr merged commit da7281e into projekt0n:main Jul 12, 2024
25 checks passed
@tmillr tmillr deleted the fix-options-darken-floats branch July 12, 2024 01:21
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