1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +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 ImageMenu {
SCALE_IMAGE,
CENTRALIZE_IMAGE,
CROP_IMAGE,
RESIZE_CANVAS,
SCALE_IMAGE,
CROP_IMAGE,
FLIP,
CENTRALIZE_IMAGE,
ROTATE,
INVERT_COLORS,
DESATURATION,
OUTLINE,
DROP_SHADOW,
INVERT_COLORS,
DESATURATION,
HSV,
POSTERIZE,
GRADIENT,
GRADIENT_MAP,
POSTERIZE,
SHADER
}
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:
# Order as in Global.ImageMenu enum
var image_menu_items := [
"Scale Image",
"Centralize Image",
"Crop Image",
"Resize Canvas",
"Scale Image",
"Crop Image",
"Mirror Image",
"Centralize Image",
"Rotate Image",
"Invert Colors",
"Desaturation",
"Outline",
"Drop Shadow",
"Invert Colors",
"Desaturation",
"Adjust Hue/Saturation/Value",
"Posterize",
"Gradient",
"Gradient Map",
"Posterize",
# "Shader"
]
var image_menu: PopupMenu = image_menu_button.get_popup()