Themes are "sticky"

Brian Weatherson's Avatar

Brian Weatherson

24 Oct, 2017 02:08 PM

I've been having the following odd bug ever since I started using version 4. When I first got it, I tried a whole bunch of different themes out to see what was best. Now whenever I load a file that I was experimenting on back then, it loads in the theme that I was then using, not the theme that's now listed in Preferences>Appearance. And there doesn't seem to be anything I can do to change it. Indeed, if I delete the file, create a new file, save it with the old name, then close that file and load it again, it loads in the experimental theme, not my current theme.

  1. Support Staff 1 Posted by Fletcher on 24 Oct, 2017 04:18 PM

    Fletcher's Avatar

    Feature, not a bug. Composer remembers specific themes and CSS for
    specific documents, just like it remembers window positioning and cursor

    The preferences sets the *default* theme/CSS for new files, it does not
    change settings for existing files.

    If you want to "reset" old files, you can delete the preferences to
    force Composer to "forget" previous settings for old files.

    Alternatively, choose a new theme for the old files and that theme will
    be used in the future.


  2. 2 Posted by Brian Weatherso... on 24 Oct, 2017 04:26 PM

    Brian Weatherson's Avatar

    It is the last paragraph that I’m worried is a bug. No matter what I do once I open a file, it reverts to the old theme when I open it next.

    Sent from my iPad

  3. Support Staff 3 Posted by Fletcher on 24 Oct, 2017 04:45 PM

    Fletcher's Avatar

    Then something odd is happening.

    You can verify what Composer does in the terminal (where foo is filename):

    defaults read com.multimarkdown.composer4.mac | grep foo

    If you select a new theme and rerun that command, it should show the new
    theme, as well as any other changes you made (CSS, window position,
    selected range).

  4. 4 Posted by Brian Weatherso... on 24 Oct, 2017 07:16 PM

    Brian Weatherson's Avatar

    When I do that the Selection and NSWindow Frame values change, but the
    Theme doesn't change. It doesn't change on the screen or in the output
    of the grep command.

    It's not a huge deal, and the program is great, just a little odd.

  5. Support Staff 5 Posted by Fletcher on 24 Oct, 2017 07:42 PM

    Fletcher's Avatar

    You are changing the theme for the document, not the default theme in
    the preferences, right??

  6. 6 Posted by Brian Weatherso... on 24 Oct, 2017 07:45 PM

    Brian Weatherson's Avatar

    This was the problem - I'm sorry I misunderstood. I thought changing the
    theme in the settings was the way to change the document.

    Thanks for the feedback, and for the excellent program.


  7. Support Staff 7 Posted by Fletcher on 24 Oct, 2017 07:47 PM

    Fletcher's Avatar

    Glad it's working now! (And if I misunderstood, let me know and we can
    keep digging into it).


  8. Fletcher closed this discussion on 28 Oct, 2017 05:33 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac