Skip to content

Convert Ulysses Themes to GtkSourceView compatible styles

Notifications You must be signed in to change notification settings

kmwallio/Ulysses2SourceView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ulysses2SourceView

Ulysses2SourceView is a script for converting Ulysses Themes to GtkSourceView compatible styles.

If you're writing in Markdown, I highly recommend Ulysses if you're using a Mac or iPad. It's my favorite Markdown editor.

The styles should hopefully be compatible with GtkSourceView3 and GtkSourceView4.

A sample of converting Dracula, but they already have a gEdit style.

Requirements (for now)

Don't look at the source code... or if you do have forgiveness.

So I should probably use an XML parser, and a more widely used language... I'll probably switch to Python of Vala... For now...

I thought it'd be fast to just parse the theme with Regex, but I was wrong... but it works... for the most part...

Converting the Theme

First, extract the Theme.xml from the Ulysses theme package. Then run ./ulysses2sourceview Theme.xml Output.xml. Add the Theme in gEdit.

Usage:
  ./ulysses2sourceview [--dark] <input-file> <output-file>
  
    <input-file>     a Ulysses theme to convert
    <output-file>    name of location to write output to
    --dark           Convert dark mode instead of light

Known Issues

There's some magic numbers and strings that I have no idea what they do... so we just did stuff to them until themes looked okayish. If you want the theme to work well, I highly recommend Ulysses.

About

Convert Ulysses Themes to GtkSourceView compatible styles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages