1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Rearrange image menu (#878)

* Update Image menu Enum

* Rearrange Image menu
This commit is contained in:
Variable 2023-06-17 02:16:56 +05:00 committed by GitHub
parent 9e8f0a95f9
commit 3513ea73e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -24,20 +24,20 @@ enum ViewMenu {
} }
enum WindowMenu { WINDOW_OPACITY, PANELS, LAYOUTS, MOVABLE_PANELS, ZEN_MODE, FULLSCREEN_MODE } enum WindowMenu { WINDOW_OPACITY, PANELS, LAYOUTS, MOVABLE_PANELS, ZEN_MODE, FULLSCREEN_MODE }
enum ImageMenu { enum ImageMenu {
SCALE_IMAGE,
CENTRALIZE_IMAGE,
CROP_IMAGE,
RESIZE_CANVAS, RESIZE_CANVAS,
SCALE_IMAGE,
CROP_IMAGE,
FLIP, FLIP,
CENTRALIZE_IMAGE,
ROTATE, ROTATE,
INVERT_COLORS,
DESATURATION,
OUTLINE, OUTLINE,
DROP_SHADOW, DROP_SHADOW,
INVERT_COLORS,
DESATURATION,
HSV, HSV,
POSTERIZE,
GRADIENT, GRADIENT,
GRADIENT_MAP, GRADIENT_MAP,
POSTERIZE,
SHADER SHADER
} }
enum SelectMenu { SELECT_ALL, CLEAR_SELECTION, INVERT, TILE_MODE } enum SelectMenu { SELECT_ALL, CLEAR_SELECTION, INVERT, TILE_MODE }

View file

@ -272,20 +272,20 @@ func populate_layouts_submenu() -> void:
func _setup_image_menu() -> void: func _setup_image_menu() -> void:
# Order as in Global.ImageMenu enum # Order as in Global.ImageMenu enum
var image_menu_items := [ var image_menu_items := [
"Scale Image",
"Centralize Image",
"Crop Image",
"Resize Canvas", "Resize Canvas",
"Scale Image",
"Crop Image",
"Mirror Image", "Mirror Image",
"Centralize Image",
"Rotate Image", "Rotate Image",
"Invert Colors",
"Desaturation",
"Outline", "Outline",
"Drop Shadow", "Drop Shadow",
"Invert Colors",
"Desaturation",
"Adjust Hue/Saturation/Value", "Adjust Hue/Saturation/Value",
"Posterize",
"Gradient", "Gradient",
"Gradient Map", "Gradient Map",
"Posterize",
# "Shader" # "Shader"
] ]
var image_menu: PopupMenu = image_menu_button.get_popup() var image_menu: PopupMenu = image_menu_button.get_popup()