Skip to content

Add background color as an appearance setting#661

Open
radther wants to merge 6 commits intoLoveRetro:mainfrom
radther:bg_color
Open

Add background color as an appearance setting#661
radther wants to merge 6 commits intoLoveRetro:mainfrom
radther:bg_color

Conversation

@radther
Copy link

@radther radther commented Feb 25, 2026

What

Adds a new background color option to the appearance pane of settings. This color should fill the screens background, replacing the existing black/clear appearance.

Why

Allows for more customisation theming without needing background images. The color can be combined with the other colors for fun themes.

Main page Quick Menu Appearance Settings
IMG_3785 IMG_3784 IMG_3783

How

  1. Un-commenting the existing setting
  2. Replacing uses of clearing background layer with fill rect of the new background color (Color 7)
  3. Update rendering of certain elements (clock and button hint pills) to render with this color behind to fix anti-aliasing
  4. Reorder rendering to render BG layer behind the selection pill layer

@frysee
Copy link
Member

frysee commented Feb 26, 2026

Gave it a brief test, a couple of issues I found:

  • On boot, the initial screen will not render any background image unless you navigate once.
  • Opening and closing quick menu will also lead to the same behavior.
  • Game switcher is just black?
  • When scrolling, I'm seeing a brief flickering that I feel wasnt there before.

void PLAT_clearLayers(int layer) {
if(layer==0 || layer==1) {
SDL_SetRenderTarget(vid.renderer, vid.target_layer1);
SDL_SetRenderDrawColor(vid.renderer, vid_bgR, vid_bgG, vid_bgB, 255);
Copy link
Member

Choose a reason for hiding this comment

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

We could just do a CFG_getColor(COLOR_BACKGROUND) here, and avoid having to maintain and call PLAT_setBackgroundColor at all.

@frysee
Copy link
Member

frysee commented Feb 26, 2026

Gave it a brief test, a couple of issues I found:

1 On boot, the initial screen will not render any background image unless you navigate once.
2 Opening and closing quick menu will also lead to the same behavior.
3 Game switcher is just black?
4 When scrolling, I'm seeing a brief flickering that I feel wasnt there before.

1: Still happening
2: Seems fixed
3: Game switcher still sometimes stays black, and sometimes it renders - but with the screenshot overlaid over the pills and texts.
4: Still there.

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.

2 participants