Skip to content

Add option to change the background color - #6807

Merged
rom1v merged 3 commits into
devfrom
background-color
May 7, 2026
Merged

rom1v merged 3 commits into
devfrom
background-color

Conversation

@rom1v

@rom1v rom1v commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Introduce a --background-color option that accepts hexadecimal color codes (3-digit or 6-digit formats):

scrcpy --background-color=#234567
scrcpy --background-color=234567  # leading '#' is optional
scrcpy --background-color=#567    # equivalent to #556677

Fixes #5855
Refs #6772 (comment)

Also set the default background to dark gray (#222).

@anotheruserofgithub anotheruserofgithub left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TBD the renaming of "black borders" in docs and code comments (see #6772 (comment) & #6772 (comment) & #6772 (comment)).

Comment thread app/src/cli.c Outdated
Comment thread app/src/cli.c
rom1v added 3 commits May 5, 2026 23:39
Introduce a `--background-color` option that accepts hexadecimal color
codes (3-digit or 6-digit formats):

    scrcpy --background-color=#234567
    scrcpy --background-color=234567  # leading '#' is optional
    scrcpy --background-color=#567    # equivalent to #556677

Fixes #5855 <#5855>
Refs #6772 comment <#6772 (comment)>
PR #6807 <#6807>
Now that the default background color is #222, a black frame is
easily distinguishable from the absence of a frame.

This reverts commit e17a885.

Refs #6772 comment <#6772 (comment)>
PR #6807 <#6807>
@rom1v

rom1v commented May 5, 2026

Copy link
Copy Markdown
Collaborator Author

TBD the renaming of "black borders" in docs

I think I will keep "black borders" for the doc, the alternatives are not clear enough for users IMO.

@anotheruserofgithub

Copy link
Copy Markdown

Another alternative could be "background" or "background borders".

@rom1v

rom1v commented May 5, 2026

Copy link
Copy Markdown
Collaborator Author

"extra space", "surrounding space"? (suggested by an LLM, after I said that the term "letterboxing" was too technical)

@anotheruserofgithub

Copy link
Copy Markdown

Anyway, the default color is very dark so I think "black" is OK.

Ah, maybe "dark borders" then?

@anotheruserofgithub

Copy link
Copy Markdown

"extra space"

Why not. I think borders/margins is clearer than extra space but they are all good alternatives.

@rom1v

rom1v commented May 5, 2026

Copy link
Copy Markdown
Collaborator Author

Anyway, the default color is very dark so I think "black" is OK.

Yeah, I think I will keep that. 😅

@AminurAlam

AminurAlam commented May 18, 2026

Copy link
Copy Markdown

how does one set the bg to be transparent? there is no way to tell it what alpha channel to use

seems like only alpha channels are supported

@rom1v

rom1v commented May 18, 2026

Copy link
Copy Markdown
Collaborator Author

how does one set the bg to be transparent?

The background cannot be set transparent: #6807 (comment)

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.

3 participants