Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/icons/Bug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions public/icons/Bug.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[remap]

importer="svg"
type="DPITexture"
uid="uid://bf3h0tbccx872"
path="res://.godot/imported/Bug.svg-88aedbdb393001191b1a88a5accaf73a.dpitex"

[deps]

source_file="res://addons/backstitch/public/icons/Bug.svg"
dest_files=["res://.godot/imported/Bug.svg-88aedbdb393001191b1a88a5accaf73a.dpitex"]

[params]

base_scale=1.0
saturation=1.0
color_map={}
fix_alpha_border=false
premult_alpha=false
compress=true
6 changes: 5 additions & 1 deletion public/scenes/sidebar.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[ext_resource type="Script" uid="uid://cb7w66a7jars1" path="res://addons/backstitch/public/scripts/branch_picker.gd" id="10_k46dq"]
[ext_resource type="Texture2D" uid="uid://coaycd1enf24v" path="res://addons/backstitch/public/icons/Monkey.svg" id="10_yycpk"]
[ext_resource type="Texture2D" uid="uid://doppopudn6twe" path="res://addons/backstitch/public/icons/PullRequest.svg" id="11_pt2pe"]
[ext_resource type="Texture2D" uid="uid://bf3h0tbccx872" path="res://addons/backstitch/public/icons/Bug.svg" id="11_swq5j"]
[ext_resource type="Texture2D" uid="uid://dyjhwr8pnyuhf" path="res://addons/backstitch/public/icons/CollapsibleOpen.svg" id="12_onfam"]
[ext_resource type="Texture2D" uid="uid://3hpc87bqt36t" path="res://addons/backstitch/public/icons/GuiClose.svg" id="13_dclp7"]
[ext_resource type="Texture2D" uid="uid://bjp4gkyrnd1dr" path="res://addons/backstitch/public/icons/ArrowUp32.svg" id="15_pt2pe"]
Expand Down Expand Up @@ -158,7 +159,7 @@ layout_mode = 2
tooltip_text = "Additional options."
icon = ExtResource("5_bp6q4")
flat = false
item_count = 6
item_count = 7
popup/item_0/text = "Clear Project"
popup/item_0/icon = ExtResource("8_s0dyv")
popup/item_0/id = 2
Expand All @@ -179,6 +180,9 @@ popup/item_4/id = 1
popup/item_5/text = "Clear FS Cache"
popup/item_5/icon = ExtResource("10_g5r1k")
popup/item_5/id = 4
popup/item_6/text = "Report issue..."
popup/item_6/icon = ExtResource("11_swq5j")
popup/item_6/id = 6

[node name="MonkeyButton" type="Button" parent="VBoxContainer/StatusBar" unique_id=665235736]
unique_name_in_owner = true
Expand Down
5 changes: 5 additions & 0 deletions public/scripts/sidebar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class ActionMenuItems:
const DEV_MODE = 3
const CLEAR_FS_CACHE = 4
const AUTO_GENERATE_DIFFS = 5
const REPORT_BUG = 6

var task_modal: TaskModal = TaskModal.new()
var item_context_menu_icon: Texture2D = preload("../icons/GuiTabMenuHlHorizontal.svg")
Expand Down Expand Up @@ -197,6 +198,7 @@ func update_init_panel():
_set_action_disabled(!has_project || !is_dev_mode, ActionMenuItems.CLEAR_FS_CACHE)
_set_action_disabled(!has_project || !is_dev_mode, ActionMenuItems.DUMP_BRANCH)
_set_action_disabled(false, ActionMenuItems.RELOAD_UI)
_set_action_disabled(false, ActionMenuItems.REPORT_BUG)
# set the auto generate diffs checkbox to the current project setting
var popup = action_menu_button.get_popup()
var idx = popup.get_item_index(ActionMenuItems.AUTO_GENERATE_DIFFS)
Expand Down Expand Up @@ -978,6 +980,9 @@ func _on_action_menu_item_selected(id: int) -> void:
popup.toggle_item_checked(idx)
auto_generate_diffs = popup.is_item_checked(idx)
update_ui()
ActionMenuItems.REPORT_BUG:
OS.shell_open("https://github.com/inkandswitch/backstitch/issues/new")
toaster.push_toast("Opened Backstitch repository in browser")

func _on_monkey_button_toggled(toggled_on: bool) -> void:
if (toggled_on):
Expand Down
Loading