Skip to content

Commit

Permalink
fix: fixed missing syntax highlighting on windows
Browse files Browse the repository at this point in the history
resolves #193
  • Loading branch information
lilopkins committed Apr 30, 2024
1 parent 1ff6671 commit 4e7e847
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,13 @@ jobs:
# Language Spec
mkdir -p build/language-specs
copy C:\gtk-build\build\x64\release\gtksourceview5\data\language-specs\def.lang build/language-specs
copy C:\gtk-build\build\x64\release\gtksourceview5\data\language-specs\language2.rng build/language-specs
copy C:\gtk-build\build\x64\release\gtksourceview5\data\language-specs\lua.lang build/language-specs
mkdir -p build/styles
copy C:\gtk-build\build\x64\release\gtksourceview5\data\styles\* build/styles
- name: Save Cargo cache
uses: actions/cache/save@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions testangel/src/ui/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use relm4::{
adw, gtk, Component, ComponentController, ComponentParts, ComponentSender, Controller,
RelmWidgetExt,
};
use sourceview::StyleSchemeManager;
use testangel::{
action_loader::ActionMap,
ipc::EngineList,
Expand Down Expand Up @@ -377,6 +378,9 @@ impl Component for ActionsModel {
}),
);

// Setup source view style manager
StyleSchemeManager::default().append_search_path("styles");

let model = ActionsModel {
action_map: init.0,
engine_list: init.1,
Expand Down

0 comments on commit 4e7e847

Please sign in to comment.