2021-02-05 09:24:26 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
using "ui/basic.style";
|
|
|
|
|
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
using "ui/chat/chat.style";
|
|
|
|
|
|
|
|
photoEditorControlsHeight: 100px;
|
2021-05-02 09:24:48 +00:00
|
|
|
photoEditorControlsBottomSkip: 20px;
|
2021-02-05 09:24:26 +00:00
|
|
|
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorButtonIconFg: mediaviewPipControlsFg;
|
|
|
|
photoEditorButtonIconFgOver: mediaviewPipControlsFgOver;
|
2021-02-13 05:52:36 +00:00
|
|
|
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorButtonIconFgActive: lightButtonFg;
|
|
|
|
photoEditorButtonIconFgInactive: mediaviewPipPlaybackInactive;
|
|
|
|
|
|
|
|
photoEditorRotateButton: IconButton(defaultIconButton) {
|
|
|
|
width: 56px;
|
|
|
|
height: 56px;
|
2021-02-13 05:52:36 +00:00
|
|
|
|
|
|
|
icon: icon {{ "photo_editor/rotate", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "photo_editor/rotate", photoEditorButtonIconFgOver }};
|
2021-04-03 14:58:49 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(8px, 8px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: shadowFg;
|
|
|
|
}
|
2021-02-05 09:24:26 +00:00
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorFlipButton: IconButton(photoEditorRotateButton) {
|
2021-02-13 05:52:36 +00:00
|
|
|
icon: icon {{ "photo_editor/flip", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "photo_editor/flip", photoEditorButtonIconFgOver }};
|
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorFlipIconActive: icon {{ "photo_editor/flip", photoEditorButtonIconFgActive }};
|
|
|
|
|
|
|
|
photoEditorPaintModeButton: IconButton(photoEditorRotateButton) {
|
2021-02-13 05:52:36 +00:00
|
|
|
icon: icon {{ "photo_editor/paint", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "photo_editor/paint", photoEditorButtonIconFgOver }};
|
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorPaintIconActive: icon {{ "photo_editor/paint", photoEditorButtonIconFgActive }};
|
|
|
|
|
|
|
|
photoEditorUndoButton: IconButton(photoEditorRotateButton) {
|
2021-02-13 05:52:36 +00:00
|
|
|
icon: icon {{ "photo_editor/undo", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "photo_editor/undo", photoEditorButtonIconFgOver }};
|
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
|
|
|
|
photoEditorRedoButton: IconButton(photoEditorRotateButton) {
|
2021-02-13 05:52:36 +00:00
|
|
|
icon: icon {{ "photo_editor/undo-flip_horizontal", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "photo_editor/undo-flip_horizontal", photoEditorButtonIconFgOver }};
|
2021-02-05 09:24:26 +00:00
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
|
|
|
|
photoEditorStickersButton: IconButton(photoEditorRotateButton) {
|
2021-02-23 10:35:23 +00:00
|
|
|
icon: icon {{ "settings_stickers", photoEditorButtonIconFg }};
|
|
|
|
iconOver: icon {{ "settings_stickers", photoEditorButtonIconFgOver }};
|
|
|
|
}
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorStickersIconActive: icon {{ "settings_stickers", photoEditorButtonIconFgActive }};
|
2021-02-13 08:23:21 +00:00
|
|
|
|
2021-03-14 09:42:18 +00:00
|
|
|
photoEditorUndoButtonInactive: icon {{ "photo_editor/undo", photoEditorButtonIconFgInactive }};
|
|
|
|
photoEditorRedoButtonInactive: icon {{ "photo_editor/undo-flip_horizontal", photoEditorButtonIconFgInactive }};
|
|
|
|
|
2021-02-13 08:23:21 +00:00
|
|
|
photoEditorTextButtonPadding: margins(10px, 0px, 10px, 0px);
|
2021-02-16 03:45:05 +00:00
|
|
|
|
|
|
|
photoEditorColorPickerTopSkip: 20px;
|
|
|
|
photoEditorColorPickerWidth: 250px;
|
2021-04-03 14:58:49 +00:00
|
|
|
photoEditorColorPickerLineHeight: 10px;
|
2021-02-16 03:45:05 +00:00
|
|
|
photoEditorColorPickerCanvasHeight: 300px;
|
|
|
|
photoEditorColorPickerCircleSize: 24px;
|
|
|
|
photoEditorColorPickerCircleBigSize: 50px;
|
|
|
|
|
|
|
|
photoEditorColorPickerCircleSkip: 50px;
|
|
|
|
|
2021-02-22 03:25:13 +00:00
|
|
|
photoEditorCropPointSize: 10px;
|
|
|
|
photoEditorCropMinSize: 20px;
|
2021-02-23 06:58:25 +00:00
|
|
|
|
|
|
|
photoEditorItemHandleSize: 10px;
|
2021-02-23 15:35:40 +00:00
|
|
|
photoEditorItemMinSize: 32px;
|
2021-02-23 06:58:25 +00:00
|
|
|
photoEditorItemMaxSize: 512px;
|