Photon theming changes, new markdown renderer, and lots of tweaks

verification for lemmy apps: LemmyApps/#2

cross-posted from: https://lemm.ee/post/39906482

There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2.

Biggest changes

Command palette

  • Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc.

Theming changes

  • You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly)
  • Admins can set their own default theme for photon with PUBLIC_THEME.

New markdown renderer

  • Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown.
  • Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblocks can be copyable.

Lots of languages

  • There are a ton of languages thanks to the community.
  • English
  • Hebrew
  • Bulgarian
  • Chinese
  • Dutch
  • Estonian
  • Finnish
  • French
  • German
  • Japanese
  • Polish
  • Portuguese

Minor features

  • New "link actions" menu
    • This will have options for archive sites to bypass paywalls, etc.
    • Media bias action was moved next to here, or in here depending on your selected post style.
  • Allow uploading multiple images at a time
  • Select menus use my own components now, making them more powerful
  • Add infinite scroll to communities too
  • Add uploaded media/voted posts in your profile page
  • Using my own service worker now, so caches should work properly

Other stuff

  • Use sharper icons for readability
23 points · 4 comments · view on lemmy.world

4 Comments

poVoq@slrpnk.net · 2 pts · 2y (2 replies)

Cool stuff.

Is it possible to set both a dark and a light theme as a default?

Blisterexe@lemmy.zip · 0 pts · 2y (1 reply)

Each theme carries both a dark and light theme

poVoq@slrpnk.net · 1 pts · 2y

Ah, that is what I missed. Thanks.

potentiallynotfelix@lemdro.id · 1 pts · 2y

Can you make the theme be in the account not the browser? when i close my browser it clears everything because I sell meth, so the theme I set is always reset.