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

Enlarging by dragging: Background not in accordance to OS theme #133820

Closed
tbrodbeck opened this issue Sep 26, 2021 · 5 comments · Fixed by #137241 or #143223
Closed

Enlarging by dragging: Background not in accordance to OS theme #133820

tbrodbeck opened this issue Sep 26, 2021 · 5 comments · Fixed by #137241 or #143223
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug electron Issues and items related to Electron fixed-in-electron-14 Issues fixed with Electron 14.x update insiders-released Patch has been released in VS Code Insiders themes Color theme issues upstream-issue-fixed The underlying upstream issue has been fixed verified Verification succeeded
Milestone

Comments

@tbrodbeck
Copy link

tbrodbeck commented Sep 26, 2021

Issue Type: Bug

Steps to Reproduce:

  1. Use OS day theme
  2. Start VS Code
  3. Switch to OS night theme
  4. Enlarge VS Code window size by dragging

Problem:

When enlarging the window has a white (day theme) background

Expected:

When enlarging the window would have a dark (night theme) background

Visual demonstration:

My.Movie.mp4

System information:

VS Code version: Code 1.60.2 (7f6ab54, 2021-09-22T11:59:27.195Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 4
Memory (System) 16.00GB (0.09GB free)
Process Argv --disable-extensions --crash-reporter-id 66972b6f-696c-4473-810b-c0357cc17a00
Screen Reader no
VM 0%
Extensions disabled
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
vsccppwtct:30364498
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthru:30370836
bridge0723:30353136
pythonrunftest32cf:30365367
pythonf5test824:30361777
javagetstartedt:30364666
pythonvspyt187cf:30365362
pydsgst2:30361792
vssid140:30363603
vssur157:30367808

@tbrodbeck tbrodbeck changed the title Enlarging by dragging: Background not in accordance to theme Enlarging by dragging: Background not in accordance to OS theme Sep 26, 2021
@sbatten
Copy link
Member

sbatten commented Sep 27, 2021

@jrieken I assigned you because I wonder if this has to do with the "splash screen" experience you set up. Feel free to assign back if not.

@jrieken jrieken assigned bpasero and sbatten and unassigned jrieken Sep 28, 2021
@jrieken
Copy link
Member

jrieken commented Sep 28, 2021

Unrelated to splash screen, likely theme caching

@bpasero bpasero added themes Color theme issues bug Issue identified by VS Code Team member as probable bug labels Sep 28, 2021
@bpasero
Copy link
Member

bpasero commented Sep 28, 2021

I know this used to work at one point but maybe broke. Relevant code seems to be:

private updateBackgroundColor(windowId: number, splash: IPartsSplash): void {
for (const window of BrowserWindow.getAllWindows()) {
if (window.id === windowId) {
window.setBackgroundColor(splash.colorInfo.background);
break;
}
}
}

@bpasero bpasero assigned deepak1556 and unassigned aeschli Sep 29, 2021
@bpasero bpasero added the electron Issues and items related to Electron label Sep 29, 2021
@bpasero
Copy link
Member

bpasero commented Sep 29, 2021

Debugging this locally, I can confirm that we call window.setBackgroundColor with the right values dynamically when the theme changes. As such I conclude that this is a Electron bug where the background color is applied differently when creating a window vs. when calling setBackgroundColor.

@bpasero
Copy link
Member

bpasero commented Sep 29, 2021

Upstream: electron/electron#26842

@bpasero bpasero added the upstream-issue-linked This is an upstream issue that has been reported upstream label Sep 29, 2021
@deepak1556 deepak1556 added fixed-in-electron-14 Issues fixed with Electron 14.x update upstream-issue-fixed The underlying upstream issue has been fixed and removed upstream-issue-linked This is an upstream issue that has been reported upstream labels Sep 30, 2021
@deepak1556 deepak1556 reopened this Feb 24, 2022
@deepak1556 deepak1556 added this to the March 2022 milestone Feb 24, 2022
@mjbvz mjbvz added the verified Verification succeeded label Mar 24, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug electron Issues and items related to Electron fixed-in-electron-14 Issues fixed with Electron 14.x update insiders-released Patch has been released in VS Code Insiders themes Color theme issues upstream-issue-fixed The underlying upstream issue has been fixed verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants
@bpasero @deepak1556 @jrieken @aeschli @sbatten @mjbvz @tbrodbeck and others