Explicit Times theme

Ian Beck's Avatar

Ian Beck

02 Jun, 2012 03:05 PM

If there are any folks like myself who want to try a FoldingText theme that doesn't hide the syntax elements, here's an initial mod of the built-in Times theme. It has the following changes:

  • Standardized header sizing; frankly, the default header sizing is silly, particularly when you discover that anything over an H4 is actually smaller than the main text. When the syntax elements are hidden you have to have some differentiation, but when you can see at a glance exactly what header level you're looking at I don't really see the need; just makes the text a little more difficult to parse when you're reading.
  • Syntax elements are always displayed, regardless of cursor position
  • Syntax elements using a lower-impact gray color
  • Link URLs are also lower-impact

Note that this will probably only work right with FoldingText 0.1 (since it's entirely possible higher versions may change selectors and so forth). To use it, do the following:

  1. Download and unzip the theme
  2. Right click FoldingText in the Finder and choose Show Package Contents
  3. Navigate to Contents/Resources/javascript-dom-build/scripts/themes/
  4. Rename Times.fttheme to Times-original.fttheme
  5. Move the new Times.fttheme into that folder
  6. Relaunch FoldingText and enjoy

Of course, don't solely use this theme! You should probably try out the default behavior for a while, then switch to this theme for contrast (or vice versa). The only way to tell which approach to Markdown you prefer is to try them both. I'm not sure if I will write a hack that permanently hides syntax elements (because the formatting options in the menus are not robust enough to support this yet, I don't think), but that's the other obvious one to try.

Incidentally, Jesse, it is ridiculously awesome that hacking the editor to behave with an entirely different philosophy requires fifteen minutes of CSS changes.

Ian

  1. Support Staff 2 Posted by Jesse Grosjean on 02 Jun, 2012 06:36 PM

    Jesse Grosjean's Avatar

    Ian,

    Thanks! I wasn’t expecting it quite so soon, but it is great to see hacking like this. The current theme is supposed to look like default unstyled Safari. I wanted to start with something neutral so that we’d have a base to move from when we start trying to pick what will be the real default theme.

    The one thing that bothers me about single size headings and visible ‘#’ is that to my eye subheadings become more prominent the h1’s.

    Jesse

  2. 3 Posted by Ian Beck on 03 Jun, 2012 02:04 AM

    Ian Beck's Avatar

    The one thing that bothers me about single size headings and visible ‘#’ is that to my eye subheadings become more prominent the h1’s.

    That's a legitimate problem, and one of the things I don't like about Markdown syntax. I made the headings all the same size for this hack, but I suspect that I'll want to adjust them to make H1s stand out more and so forth. I'll probably do that with a combination of subtle color (default text is currently #333, so putting more important headings as #000 is a subtle but noticeable difference), and likely by having some size gradation in the higher value headings (or possibly dropping bold for them completely, substituting italics for some, etc.).

    Ian

  3. 4 Posted by Ian Beck on 04 Jun, 2012 02:32 PM

    Ian Beck's Avatar

    For any folks using this theme, there's been a slight change in the installation procedure:

    • Download the theme above, decompress it, and rename the folder User.fttheme
    • Move the User.fttheme folder to ~/Library/Containers/com.hogbaysoftware.osx.FoldingText/Data/Library/Application Support/FoldingText/Themes/User.fttheme
    • Restart FoldingText to see the changes

    Ian

  4. 5 Posted by Jamie on 29 Jul, 2012 10:47 AM

    Jamie's Avatar

    My custom theme isn't being picked up when I put it in ~/Library/Containers/.../User.fttheme (using release 0.9.1), although it does work when I replace Courier.fttheme in the application bundle. Any suggestions?

  5. Support Staff 6 Posted by Jesse Grosjean on 30 Jul, 2012 02:08 AM

    Jesse Grosjean's Avatar

    I’m not sure. A custom theme at:

    ~/Library/Containers/com.foldingtext.FoldingText/Data/Library/Application Support/FoldingText/Themes/User.fttheme/style.css
    

    Seems to be working for me.

  6. 7 Posted by Jamie on 30 Jul, 2012 08:22 AM

    Jamie's Avatar

    Thanks! It's working now. So the folder's changed from com.hogbaysoftware.osx.FoldingText to com.foldingtext.FoldingText? Can I then safely delete the com.hogbaysoftware.osx.FoldingText folder?

  7. Support Staff 8 Posted by Jesse Grosjean on 30 Jul, 2012 11:10 AM

    Jesse Grosjean's Avatar

    Yes that should be OK to delete.

  8. 9 Posted by Bob Peaks on 04 Aug, 2012 02:50 AM

    Bob Peaks's Avatar

    Anyway we can get that theme uploaded back please? It seems it has been removed... Thanks.

  9. Support Staff 10 Posted by Jesse Grosjean on 05 Aug, 2012 07:57 PM

    Jesse Grosjean's Avatar

    The download still works for me. Though it could be out of date… I must reiterate that themes aren’t really supported now. So themes you find posted around in the forums are probably already out of date.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.