Skip to content

refactor(styles): Refactor styles for dark mode icon-shadow and SCSS variables#35

Merged
leandromqrs merged 2 commits into
mainfrom
refactor/scss-colors-to-variable
May 20, 2026
Merged

refactor(styles): Refactor styles for dark mode icon-shadow and SCSS variables#35
leandromqrs merged 2 commits into
mainfrom
refactor/scss-colors-to-variable

Conversation

@leandromqrs
Copy link
Copy Markdown
Member

This pull request refactors the SCSS styles to consistently use new theme variables for colors, shadows, and backgrounds, replacing hardcoded values and conditional logic. This improves maintainability, makes theme customization easier, and ensures visual consistency across light and dark modes.

Introduction of theme variables:

  • Added new variables in src/styles/_variables.scss for accent colors, focus rings, drop borders, surface shadows, tray backgrounds, and tooltip colors, with specific overrides for light and dark variants. [1] [2]

Refactoring to use variables:

  • Updated src/styles/_overview.scss to replace hardcoded colors and shadows (e.g., selection backgrounds, drop highlights, dialog backgrounds, focus rings) with the new variables for accent and surface styling. [1] [2] [3] [4] [5]
  • Refactored src/styles/_switcher.scss to use the new surface shadow and border variables instead of hardcoded values.
  • Updated src/styles/_tray-icons.scss to eliminate conditional SCSS blocks for light/dark variants, using the new tray and accent variables for hover, active, badge, and tooltip styles. [1] [2] [3] [4]

Other improvements:

  • Modified src/styles/_xwayland-indicator.scss to use the imported variables and apply the icon shadow only in dark mode, improving clarity and consistency.

@leandromqrs leandromqrs self-assigned this May 20, 2026
@leandromqrs leandromqrs merged commit b531228 into main May 20, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Luminus OS May 20, 2026
@leandromqrs leandromqrs deleted the refactor/scss-colors-to-variable branch May 20, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant