Customizing headings

Home Forums cherrytree Customizing headings

This topic contains 5 replies, has 3 voices, and was last updated by  giuspen 3 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #120880

    awa
    Member

    Hello,

    Is it possible to customize headings? For example I would like to make the h1 heading bold, change its color and possibly the font size. I can do this on a per-case basis, but I’d prefer to have this applied to all of my h1 headings throughout all my notes.

    Is this already possible in version 0.33?

    Awa

    #120883

    giuspen
    Moderator

    Hi, it is in the plans but not available yet, can’t tell you exactly when it will be available.

    #122892

    awa
    Member

    Hello again,

    I’m now using version 0.35.7. If I wanted to do this myself by tweaking a file or two (at my own risks), how would I go about it?
    I found cons.py and core.py in usr/share/cherrytree/modules and the apply_tag() method, but styling seems to call the GTK library. Is there a GTK file somewhere that contains the text formatting?

    Along the same line, can I define my own style sheet for the code boxes and the code nodes? CherryTree proposes: classic, cobalt, kate, oblivion and tango. I picked kate, but this doesn’t match the syntax highlighting settings I can see in Kate. How could I add my own stylesheet here?

    Awa

    #122908

    giuspen
    Moderator

    Hi, in core.py search for the method “apply_tag_exist_or_create” and the conditions “elif property_value == cons.TAG_PROP_H1” or H2 or H3, that’s the place

    #124279

    OpusLux
    Member

    Any news on this? Because that’s what i do with every new version, giuspen…

    Hi, in core.py search for the method “apply_tag_exist_or_create” and the conditions “elif property_value == cons.TAG_PROP_H1” or H2 or H3, that’s the place

    It would be awful if we could style our headings in the gui. At least the colors. Please make it finally happen.

    Something else:
    A long time ago it was possible to have special chars in the timestamp ([ctr]-alt]-m). Example:
    ♪ Donnerstag, 18.06.2015 – 14:23 Uhr

    But since a couple of versions special characters don’t render correctly any more when used in the timestamp-setting-field.

    #124280

    giuspen
    Moderator

    in the next few months there will be no new features at all since I’m porting the app to gtk3 and python3

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.