TheAssassin / libdesktopenvironments

A library that simplifies native UI engineering on the Linux desktop
MIT License
1 stars 0 forks source link

Native look for fonts and colors, possibly buttons and icons #1

Open probonopd opened 6 years ago

probonopd commented 6 years ago

Would it be possible to get a closer match for fonts and colors, ideally shape of buttons and icons?

Screenshot: Firefox on Ubuntu 16.04 - looks native

screenshot from 2017-10-30 16-26-46

Screenshot: AppImageUpdate on Ubuntu 16.04 - does not look native

screenshot from 2017-10-30 16-30-34

TheAssassin commented 6 years ago

First of all, FLTK (the UI toolkit used for the application in the lower screenshot) is pretty limited, but blazing fast, easy to compile statically, and overall a nice library.

I doubt you can fetch a desktop environment specific "button style". Further, I'm not sure how to fetch those icons from the desktop environment, that's probably more of a distribution wide setting than anything desktop environment specific.

I am not sure why the font rendering differs so much, probably due to me being unable to set the right font size in FLTK.

If anyone can provide commands on how to fetch those data for the most common DEs, I'll look into implementing them.

probonopd commented 6 years ago

It looks to me like FLTK, for whatever reason, is using the bold font instead of regular.

TheAssassin commented 6 years ago

@probonopd please build and run the demo app on the distro you use at the moment, it'll show you what is passed to FLTK in this case.