From fe28aaafb58be27abb9cb60e68fe0f004ea24e73 Mon Sep 17 00:00:00 2001
From: itdominator <1itdominator@gmail.com>
Date: Sat, 28 Oct 2023 14:43:50 -0500
Subject: [PATCH] cleanup
---
src/core/containers/__init__.py | 3 +
src/core/{ => containers}/core_widget.py | 10 +-
.../{ => containers}/editors_container.py | 6 +-
src/core/controller.py | 2 +-
src/poop is.txt | 0
.../language-specs/gdscript.lang | 277 ++++++++++++++++++
.../styles/peacocks-in-space.xml | 1 +
.../styles/penguins-in-space.xml | 3 +-
8 files changed, 292 insertions(+), 10 deletions(-)
create mode 100644 src/core/containers/__init__.py
rename src/core/{ => containers}/core_widget.py (85%)
rename src/core/{ => containers}/editors_container.py (87%)
delete mode 100644 src/poop is.txt
create mode 100644 user_config/local/share/gtksourceview-4/language-specs/gdscript.lang
diff --git a/src/core/containers/__init__.py b/src/core/containers/__init__.py
new file mode 100644
index 0000000..4efd4b9
--- /dev/null
+++ b/src/core/containers/__init__.py
@@ -0,0 +1,3 @@
+"""
+ Containers Module
+"""
diff --git a/src/core/core_widget.py b/src/core/containers/core_widget.py
similarity index 85%
rename from src/core/core_widget.py
rename to src/core/containers/core_widget.py
index 5f7fd3c..e04841e 100644
--- a/src/core/core_widget.py
+++ b/src/core/containers/core_widget.py
@@ -6,10 +6,10 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
-from .widgets.separator_widget import Separator
-from .widgets.save_file_dialog import SaveFileDialog
-from .widgets.base.general_info_widget import GeneralInfoWidget
-from .widgets.base.banner_controls import BannerControls
+from ..widgets.separator_widget import Separator
+from ..widgets.save_file_dialog import SaveFileDialog
+from ..widgets.base.general_info_widget import GeneralInfoWidget
+from ..widgets.base.banner_controls import BannerControls
from .editors_container import EditorsContainer
@@ -55,4 +55,4 @@ class CoreWidget(Gtk.Box):
self.ctx.add_class(f"mw_transparency_{settings.theming.transparency}")
def _remove_transparency(self):
- self.ctx.remove_class(f"mw_transparency_{settings.theming.transparency}")
+ self.ctx.remove_class(f"mw_transparency_{settings.theming.transparency}")
\ No newline at end of file
diff --git a/src/core/editors_container.py b/src/core/containers/editors_container.py
similarity index 87%
rename from src/core/editors_container.py
rename to src/core/containers/editors_container.py
index a92f033..0b2b0d0 100644
--- a/src/core/editors_container.py
+++ b/src/core/containers/editors_container.py
@@ -6,8 +6,8 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
# Application imports
-from .widgets.miniview_widget import MiniViewWidget
-from .widgets.base.notebook.editor_notebook import EditorNotebook
+from ..widgets.miniview_widget import MiniViewWidget
+from ..widgets.base.notebook.editor_notebook import EditorNotebook
@@ -62,4 +62,4 @@ class EditorsContainer(Gtk.Box):
def _load_widgets(self):
self.add(EditorsPaned())
- self.add(MiniViewWidget())
+ self.add(MiniViewWidget())
\ No newline at end of file
diff --git a/src/core/controller.py b/src/core/controller.py
index f7edc55..e3946b0 100644
--- a/src/core/controller.py
+++ b/src/core/controller.py
@@ -11,7 +11,7 @@ from gi.repository import GLib
# Application imports
from .controller_data import ControllerData
-from .core_widget import CoreWidget
+from .containers.core_widget import CoreWidget
from .mixins.signals_mixins import SignalsMixins
diff --git a/src/poop is.txt b/src/poop is.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/user_config/local/share/gtksourceview-4/language-specs/gdscript.lang b/user_config/local/share/gtksourceview-4/language-specs/gdscript.lang
new file mode 100644
index 0000000..ae625bf
--- /dev/null
+++ b/user_config/local/share/gtksourceview-4/language-specs/gdscript.lang
@@ -0,0 +1,277 @@
+
+
+
+
+
+ text/x-gdscript
+ *.gd
+ #
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (\.[\s\n\r]*[\w]+)[\s\n\r]*(?=\(.*\))
+
+
+
+ [_a-zA-Z][_a-zA-Z0-9]*
+ [1-9][0-9]*
+
+
+
+ % # leading % sign
+ \(\%{identifier}\)? # mapping key
+ [#0\-\ \+]* # conversion flags
+ (\-?\%{number}|\*)? # minimum field width
+ (\.(\-?\%{number}|\*))? # precision
+ (hlL)? # length modifier
+ [diouxXeEfFgGcrs%] # conversion type
+
+
+
+
+
+
+ \\( # leading backslash
+ [\\\"\'nrbtfav\?] | # escaped character
+ [0-7]{1,3} | # one, two, or three octal digits
+ x[0-9A-Fa-f]+ # 'x' followed by hex digits
+ )
+
+
+
+
+ "
+ "
+
+
+
+
+
+
+
+
+ '
+ '
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (?<![\w\.])
+ _init
+ _ready
+
+
+
+ (?<![\w\.])
+ false
+ true
+
+
+
+ ( (\d+)?\.\d+ | \d+\. ) |
+ ( (\d+|(\d+)?\.\d+|\d+\.)[eE][+-]?\d+ )
+
+
+
+ (?<![\w\.])(\%{float}|\d+)[jJ]\b
+
+
+
+ (?<![\w\.])\%{float}(?![\w\.])
+
+
+
+ (?<![\w\.])([1-9][0-9]*|0)[lL]?(?![\w\.])
+
+
+
+ (?<![\w\.])0[0-7]+[lL]?(?![\w\.])
+
+
+
+ (?<![\w\.])0[xX][0-9A-Fa-f]+[lL]?(?![\w\.])
+
+
+
+ extends
+ preload
+
+
+
+ (?<![\w\.])
+ null
+
+
+
+ and
+ assert
+ break
+ breakpoint
+ class
+ const
+ continue
+ elif
+ else
+ enum
+ export
+ extends
+ false
+ float
+ for
+ func
+ if
+ in
+ int
+ not
+ null
+ onready
+ or
+ pass
+ return
+ self
+ setget
+ signal
+ static
+ tool
+ true
+ var
+ while
+ yield
+
+
+
+ (?<![\w\.])
+ Vector2
+ Size2
+ Rect2
+ Vector3
+ Matrix32
+ Plane
+ Quat
+ AABB
+ Box3
+ Matrix3
+ Transform
+ Color
+ Image
+ NodePath
+ RID
+ Object
+ InputEvent
+
+
+
+ (?<![\w\.])
+ print
+ sin
+ cos
+ tan
+ sinh
+ cosh
+ tanh
+ asin
+ acos
+ atan
+ atan2
+ sqrt
+ fmod
+ fposmod
+ floor
+ ceil
+ round
+ abs
+ sign
+ pow
+ log
+ exp
+ isnan
+ isinf
+ ease
+ decimals
+ stepify
+ lerp
+ dectime
+ randomize
+ rand
+ randi
+ randf
+ rand_range
+ rand_seed
+ deg2rad
+ rad2deg
+ linear2db
+ db2linear
+ max
+ min
+ clamp
+ nearest_po2
+ weakref
+ convert
+ str
+ print
+ printt
+ printerr
+ printraw
+ range
+ load
+ inst2dict
+ dict2inst
+
+
+
+
+
diff --git a/user_config/local/share/gtksourceview-4/styles/peacocks-in-space.xml b/user_config/local/share/gtksourceview-4/styles/peacocks-in-space.xml
index f86e3b7..7128c59 100644
--- a/user_config/local/share/gtksourceview-4/styles/peacocks-in-space.xml
+++ b/user_config/local/share/gtksourceview-4/styles/peacocks-in-space.xml
@@ -119,4 +119,5 @@
+
diff --git a/user_config/local/share/gtksourceview-4/styles/penguins-in-space.xml b/user_config/local/share/gtksourceview-4/styles/penguins-in-space.xml
index 2ee7bb8..6893435 100644
--- a/user_config/local/share/gtksourceview-4/styles/penguins-in-space.xml
+++ b/user_config/local/share/gtksourceview-4/styles/penguins-in-space.xml
@@ -1,5 +1,5 @@
- ITDominator
+ ITDominator
An homage to Dayle Rees' Peacocks In Space theme.
@@ -115,4 +115,5 @@
+