fix: maximize/restore icon in the SSD title bar displays incorrectly
updates the condition to use surface.shellSurface.isMaximized, ensuring the icon accurately reflects the window's maximized state when using the shell surface. Fixes: linuxdeepin/treeland#501 Log:
This commit is contained in:
parent
b48e9f3a7d
commit
7642cb91cf
|
|
@ -102,7 +102,7 @@ Control {
|
|||
|
||||
objectName: "maxOrWindedBtn"
|
||||
sourceComponent: D.WindowButton {
|
||||
icon.name: surface.isMaximized ? "window_restore" : "window_maximize"
|
||||
icon.name: surface.shellSurface.isMaximized ? "window_restore" : "window_maximize"
|
||||
textColor: control.textColor
|
||||
height: root.height
|
||||
focusPolicy: Qt.NoFocus
|
||||
|
|
|
|||
Loading…
Reference in New Issue