Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A library to convert Ulysses Themes to GtkSourceView Markdown Styles

License

NotificationsYou must be signed in to change notification settings

TwiRp/ultheme-vala

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.

Requirements

valaclibarchive-devlibxml2-dev

Usage

ultheme.wrap

[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.

Parsing a Theme

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.

About

A library to convert Ulysses Themes to GtkSourceView Markdown Styles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp