fromscratch icon indicating copy to clipboard operation
fromscratch copied to clipboard

Feature request: Theming/colors

Open JohnSandel opened this issue 9 years ago • 11 comments

FromScratch is a lovely piece of work. Thank you!

I'd find it more useful if text & background colors were user-definable. As is, I find the text harder to use than, say, black-on-white.

JohnSandel avatar Feb 13 '16 19:02 JohnSandel

Yep I do like the solarised light syntax theme rather than solarised dark. Also, It would be great to have custom font, because I am a real fan of Architects Daughter Font, for note taking.

@JohnSandel pls change the issue title to themeing ;p

adiultra avatar Feb 14 '16 15:02 adiultra

Would a settings/theming file in ~/.fromscratch suffice? a theme.json with this style?

{
  "background":"#000",
  "color": "#fff"
}

Kilian avatar Feb 15 '16 09:02 Kilian

@Kilian Yep It would definetly, But gui would be great for non programmers. :+1:

adiultra avatar Feb 15 '16 10:02 adiultra

FromScratch currently has no management gui or settings, and I'd like to keep it that way.

Kilian avatar Feb 15 '16 14:02 Kilian

:cry: :crying_cat_face:

adiultra avatar Feb 16 '16 16:02 adiultra

+1

spike1234 avatar Feb 18 '16 10:02 spike1234

I'm going to wait until electron updates to Chrome 48 or 49 so I can try and use css variables. Due to the theme now using SCSS to programmaticly define the highlight and focus colors based off the default colors, this is harder to do on runtime.

Kilian avatar Feb 26 '16 21:02 Kilian

Is this still on the cards?

altern8tif avatar Dec 29 '16 07:12 altern8tif

Yes, but it turned out to be a bit more difficult than just setting the foreground and background :) I need a bunch of color functions to generate all the permutations (selection, found items, current line highlight) and that is currently done in SCSS. I could switch to CSS4 color functions and use PostCSS, but I would need to ship the parser and build something to parse a users css file with Fromscratch if end users should be able to theme. It's a difficult problem if you want to keep the automation for the styling that I have.

Another option is hue-rotate, which is very limited and basically only allows you to change the blue-ish tint to a different coloured tint, leaving the saturation and lightness the same (so you could have a dark theme in red, or green, or purple or whatever, but they would still be dark).

I'm holding out for a better option, or css4 color function support.

Kilian avatar Dec 29 '16 08:12 Kilian

It's a little work-in-progress, but I came up with a nice way to get a light theme: selection_003

This allows me to re-use my theme setup, as it's essentially a color-corrected inversion :)

Kilian avatar May 15 '17 19:05 Kilian

very nice! I like it better than the standard colors! :)

spike1234 avatar May 16 '17 09:05 spike1234