- Notifications
You must be signed in to change notification settings - Fork0
A library to convert Ulysses Themes to GtkSourceView Markdown Styles
License
NotificationsYou must be signed in to change notification settings
TwiRp/ultheme-vala
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Port ofUlysses2SourceView in Vala Library form. With a few fixes and a few more bugs.
Allows you to convertUlysses Editor Themes to markdown syntax focusedGtkSourceView Style Schemes.
valaclibarchive-devlibxml2-dev
[wrap-git]directory=vala-ulthemeurl=https://github.com/TwiRp/ultheme-vala.gitrevision=master
Place theultheme.wrap
in subprojects directory in your project.
In your meson.build, add:
ultheme_dep = dependency('ultheme-0.1', fallback : [ 'ultheme', 'libultheme_dep' ])
Then add ultheme_dep and dependency('clutter-1.0') to your dependencies.
Download desired theme fromUlysses Editor Themes, or build one with aTheme Generator.
Themes contain both a light and dark version. To get the dark version, you can do:
publicstaticint main (string[] args) {var ultheme=newUltheme.Parser (File.new_for_path (args[1])); print (ultheme.get_dark_theme ());return0;}
For the light version:
publicstaticint main (string[] args) {var ultheme=newUltheme.Parser (File.new_for_path (args[1])); print (ultheme.get_light_theme ());return0;}
There's bugs and magic numbers. This is a best guess implementation.