Fix black frames of the simple window and rename its setting

Without the shadow and the resize border composeFrame() only forced the
alpha channel, so the buffer the driver reallocated after a size change was
presented as it is, which showed up as a black frame on every resize step.
The content is now always painted from the cache and only the shadow itself
is skipped when there are no margins.

The setting is named simple-window and means the opposite of the previous
shadow-and-border: it is off by default, so the window keeps its shadow and
the outer border for resizing.
This commit is contained in:
alexei-zebra 2026-10-10 00:38:06 +03:00
parent ab7f542d61
commit 27a58b584e
No known key found for this signature in database
GPG key ID: D19D450AC3D9A80E
6 changed files with 19 additions and 18 deletions

View file

@ -73,8 +73,8 @@ function on_open()
"display.compact-window-bar.tooltip"
)
create_checkbox(
"display.window-shadow", "Window Shadow",
"display.window-shadow.tooltip"
"display.simple-window", "Simple Window",
"display.simple-window.tooltip"
)
create_checkbox(
"display.live-resize", "Live Window Resize",

View file

@ -119,10 +119,10 @@ settings.Clouds quality=Качество облаков
settings.Acoustic effects=Акустические эффекты
settings.Microphone access=Доступ к микрофону
settings.Narrow Window Bar=Узкая шапка окна
settings.Window Shadow=Тень окна
settings.Simple Window=Простое окно
settings.Live Window Resize=Живой ресайз окна
settings.display.compact-window-bar.tooltip=Шапка окна высотой 24 px вместо 48 px
settings.display.window-shadow.tooltip=Тень вокруг окна и внешняя область для изменения размера (без неё окно рисуется упрощённо)
settings.display.simple-window.tooltip=Без тени и внешней рамки ресайза
settings.display.live-resize.tooltip=Перерисовывать содержимое окна при изменении размера (выключено — последний кадр растягивается)
# Управление