waveterm/frontend/app
Evan Simkowitz e6003c310e
Set background color for window controls on Linux (#247)
The Window Controls Overlay API applies a transparent overlay on
Windows, but not on Linux. This PR addresses this by capturing the area
underneath the overlay, averaging the color of the area, and setting
this as the overlay background color.

It will also detect whether to make the control symbols white or black,
depending on how dark the background color is.

On Linux, this will set both the background color and the symbol color,
on Windows it will just set the symbol color.

<img width="721" alt="image"
src="https://github.com/user-attachments/assets/e6f9f8f8-a49f-41b6-984e-09e7d52c631d">
2024-08-19 14:16:09 -07:00
..
asset Make magnify icon always visible, transition from magnify to minimize (#197) 2024-08-05 16:13:26 -07:00
block Remove double-click on block header to magnify (#233) 2024-08-15 17:49:34 -07:00
element Create reduced motIon setting (#226) 2024-08-14 21:47:09 -07:00
hook CPU Plot (#185) 2024-07-31 14:13:36 -07:00
modals modals component and model and TOS modal (#164) 2024-07-30 11:44:19 -07:00
store fix term keydown handler 2024-08-19 12:24:08 -07:00
tab Use Window Controls Overlay API for native-like experience on Windows and Linux (#240) 2024-08-16 23:45:22 -07:00
view fix term keydown handler 2024-08-19 12:24:08 -07:00
workspace move widgets to left, fix some paddings 2024-08-09 11:49:19 -07:00
app.less modals component and model and TOS modal (#164) 2024-07-30 11:44:19 -07:00
app.tsx Set background color for window controls on Linux (#247) 2024-08-19 14:16:09 -07:00
mixins.less directory preview fixes (#130) 2024-07-25 21:14:21 -07:00
reset.less port to electron (#33) 2024-06-11 17:42:10 -07:00
theme.less disable drag when there's a magnified node 2024-08-15 15:03:15 -07:00