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 + # + + + +