Menu

#254 "yad --calendar" does not support font sizes

New
nobody
High
Defect
2015-06-10
2015-06-07
No

yad --calendar provides the month nicely formatted. However, it is too small for touchscreen monitors with the user selecting the date or to move between months or years.

yad --calendar --height=400 --width=400 makes the window but not the fonts bigger.

There is no documented way with the calendar option make the font larger.

Discussion

  • Victor Ananjevsky

    the only way to do this is use the custom gtkrc

    style "big-font" {
        font_name = "Monospace 16"
    }
    widget "*yad-calendar-widget" style "big-font"
    

    place this style in separate file, for example ~/mygtkrc, and launch calendar as

    yad --calendar --height=400 --width=400 --gtkrc=~/mygtkrc

    NB: i'm not sure if this will works with gtk3

     
  • John Pezzano

    John Pezzano - 2015-06-09

    I tried it. yad version is 0.28.1
    Seems like gtk 3 and 2 are both installed
    libgtk-2.0-common
    libgtk-3.0-common

    Did not work. No error or warning messages from yad.

    I appreciate the help you have given me.

     
  • Victor Ananjevsky

    ldd which yad | grep libgtk - this command shows you gtk library linked with yad

    if your yad binary linked with libgtk-3.0 you may customize dialogs through gtk.css

    place something like

    GtkCalendar#yad-calendar-widget {
        font: "Sans 20";
    }
    

    into ~/.config/gtk-3.0/gtk.css

     
    • John Pezzano

      John Pezzano - 2015-06-10

      ldd `which yad` | grep libgtk

      libgtk-x11-2.0.so.0

       
      • Victor Ananjevsky

        if so, the recipe with your own gtkrc must work. at least it works for me.

        can you show me how you do that?

         

Log in to post a comment.