mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 02:02:11 +03:00
Multitasking view: Ajust close window button on scaling factor change
This commit is contained in:
parent
afa6d6bd43
commit
4be64574c0
@ -105,6 +105,7 @@ namespace Gala {
|
||||
* a close button and a shadow. Used together with the WindowCloneContainer.
|
||||
*/
|
||||
public class WindowClone : Actor {
|
||||
const int CLOSE_WINDOW_ICON_SIZE = 36;
|
||||
const int WINDOW_ICON_SIZE = 64;
|
||||
const int ACTIVE_SHAPE_SIZE = 12;
|
||||
const int FADE_ANIMATION_DURATION = 200;
|
||||
@ -578,6 +579,9 @@ namespace Gala {
|
||||
close_button.set_easing_duration (0);
|
||||
window_title.set_easing_duration (0);
|
||||
|
||||
var close_button_size = CLOSE_WINDOW_ICON_SIZE * scale_factor;
|
||||
close_button.set_size (close_button_size, close_button_size);
|
||||
|
||||
close_button.y = -close_button.height * 0.33f;
|
||||
|
||||
switch (pos) {
|
||||
|
Loading…
Reference in New Issue
Block a user