mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Fullscreen can be toggled on and off from the View menu
This commit is contained in:
parent
81f9cb4769
commit
8d9e1e8207
|
@ -42,6 +42,7 @@ Darshan Phaldesai (luiq54), Igor Santarek (jegor377), rob-a-bolton, Kinwailo
|
|||
- The "create new image" dialog now remembers the last created canvas size. The default image settings are being used only when Pixelorama first launches. ([#178](https://github.com/Orama-Interactive/Pixelorama/issues/178))
|
||||
- Language and theme checkboxes are now radio buttons.
|
||||
- The Blue theme has more similar margins and seperations with the rest of the themes.
|
||||
- Fullscreen can be toggled on and off from the View menu.
|
||||
|
||||
### Fixed
|
||||
- Exporting large images and drawing with large image brushes is now a lot faster. (Because of Godot 3.2.2)
|
||||
|
|
|
@ -151,6 +151,9 @@ msgstr ""
|
|||
msgid "Zen Mode"
|
||||
msgstr ""
|
||||
|
||||
msgid "Fullscreen Mode"
|
||||
msgstr ""
|
||||
|
||||
msgid "Fill with color:"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -52,9 +52,6 @@ func _input(event : InputEvent) -> void:
|
|||
if get_focus_owner() is LineEdit:
|
||||
get_focus_owner().release_focus()
|
||||
|
||||
if event.is_action_pressed("toggle_fullscreen"):
|
||||
OS.window_fullscreen = !OS.window_fullscreen
|
||||
|
||||
if event.is_action_pressed("redo_secondary"): # Shift + Ctrl + Z
|
||||
redone = true
|
||||
Global.current_project.undo_redo.redo()
|
||||
|
|
|
@ -65,7 +65,8 @@ func setup_view_menu() -> void:
|
|||
"Show Rulers" : InputMap.get_action_list("show_rulers")[0].get_scancode_with_modifiers(),
|
||||
"Show Guides" : InputMap.get_action_list("show_guides")[0].get_scancode_with_modifiers(),
|
||||
"Show Animation Timeline" : 0,
|
||||
"Zen Mode" : InputMap.get_action_list("zen_mode")[0].get_scancode_with_modifiers()
|
||||
"Zen Mode" : InputMap.get_action_list("zen_mode")[0].get_scancode_with_modifiers(),
|
||||
"Fullscreen Mode" : InputMap.get_action_list("toggle_fullscreen")[0].get_scancode_with_modifiers(),
|
||||
}
|
||||
view_menu = Global.view_menu.get_popup()
|
||||
|
||||
|
@ -234,8 +235,10 @@ func view_menu_id_pressed(id : int) -> void:
|
|||
toggle_show_guides()
|
||||
4: # Show animation timeline
|
||||
toggle_show_anim_timeline()
|
||||
5: # Fullscreen mode
|
||||
5: # Zen mode
|
||||
toggle_zen_mode()
|
||||
6: # Fullscreen mode
|
||||
toggle_fullscreen()
|
||||
|
||||
Global.canvas.update()
|
||||
|
||||
|
@ -288,6 +291,11 @@ func toggle_zen_mode() -> void:
|
|||
view_menu.set_item_checked(5, zen_mode)
|
||||
|
||||
|
||||
func toggle_fullscreen() -> void:
|
||||
OS.window_fullscreen = !OS.window_fullscreen
|
||||
view_menu.set_item_checked(6, OS.window_fullscreen)
|
||||
|
||||
|
||||
func image_menu_id_pressed(id : int) -> void:
|
||||
if Global.current_project.layers[Global.current_project.current_layer].locked: # No changes if the layer is locked
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue