summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Draw/Cairo.hs
AgeCommit message (Collapse)Author
2022-12-31layout: special case for empty left segment (see #655)jao
2022-12-23Fix for #663: honour explicit bg/fg colors for iconsjao
2022-12-10off by onesjao
2022-12-10off by onejao
2022-12-10alignment: avoid overlapping of left and right segmentsjao
Might help with #655
2022-11-30Adds DPI configuration (#660)jgrocho
Adds a new DPI configuration, especially useful for HiDPI displays. This changes the scaling factor for fonts as displayed by Pango. It defaults to 96.0 which corresponds to an average screen and is the default in [Cairo](https://hackage.haskell.org/package/pango-0.13.5.0/docs/Graphics-Rendering-Pango-Cairo.html#v:cairoFontMapGetDefault). It's also possible to supply a zero or negative value to use the default scaling factor, but I felt setting the default to 96.0 makes it more explicit. It also adds a matching command line option. I haven't tested it too thoroughly, but in my limited use it appears to be working as intended. One thing this does not do is scale XBM and XPM bitmap files which I'm unsure how to do or if that should even be our concern (instead leaving it up to the user to supply appropriate bitmaps). Co-authored-by: Jonathan Grochowski <jon@grocho.net> Reviewed-on: https://codeberg.org/xmobar/xmobar/pulls/660 Co-authored-by: jgrocho <codeberg@jon.grocho.net> Co-committed-by: jgrocho <codeberg@jon.grocho.net>
2022-11-16cairo: recover pre-cairo z-ordering of segmentsjao
2022-11-16cairo: fix: don't draw outside maximum allowed offsetjao
2022-11-13similar take on centering the centerjao
2022-11-13center segment drawn in the center of the barjao
should make things better for #650 and #655
2022-09-30Run.Parsers -> Config.Templatejao
2022-09-21better abstracted icon drawing interfacejao
2022-09-20fix for -f-with_xrender buildcairojao
2022-09-20new namespace: Xmobar.Drawjao