elitistsnob / typora-cobalt-theme

A dark theme for Typora with enhanced UI
378 stars 105 forks source link

Folder Icons #21

Open SirGryphin opened 2 years ago

SirGryphin commented 2 years ago

Folder Icons not showing up, I'm using Windows with latest Typora. Only folder Icon shows not .md file icons.

Screenshot 2021-09-25 170600

hackorum commented 2 years ago

How did you get the icons? Icons are not showing up for me

SirGryphin commented 2 years ago

@hackorum I've not changed anything. This how it is for me I only have folder icons no file icons. I think it has something to do with how the CSS uses images, instead of linking to a image in theme folder they link to svg icons and it seems to be hit and miss.

hackorum commented 2 years ago

Ok, thanks for the quick response!

SirGryphin commented 2 years ago

@hackorum are the folder icons showing for you? like mine or are you missing everything?

File Icon Fix

  1. Open cobalt.css
  2. Find fill='#
  3. Replace with fill='%23

The CSS uses UTF-8 and it doesn't like # symbols in the color code, so it makes the Icon not show up. There should be 5 instances that need replacing.

Capture

hackorum commented 2 years ago

No icons at all :(

SirGryphin commented 2 years ago

@hackorum I've created a new version, I've convert the svg code into svg files and included them into the Cobalt theme folder. So it will load actual files. This should hopefully fix your problem with them not showing.

Just place the Cobalt folder and Cobalt.css in theme folder of typora like normal and let me know if it works, I've tested it on mine and it works but I'm not having same problem.

Also what version of typora you using and OS?

typora-cobalt-theme-icon-fix.zip

hackorum commented 2 years ago

Still no icons, I'm using Mac OS Big Sur on M1 mac and the version is 0.11.11

SirGryphin commented 2 years ago

I have no idea what causing it, I'm using it on Windows which is running 0.11.13. On typora github there is a lot of people with problems using it on the same MacOS Big Sur M1, mostly it just crashes and doesn't load. Supposedly it something on apple end causing problems, but I'm no expect just doing a quick search.

hackorum commented 2 years ago

It's ok, not having icons is not a big deal

hackorum commented 2 years ago

I can live without it

SirGryphin commented 2 years ago

Sorry I can't help, I just don't have a Mac. If you google SVG Big Sur it seems there a problem with how svg files are viewed, I don't know enough to make them compatible. Maybe someone else will post here. I did try to convert svg to png and load them into the theme but it just doesn't work.