Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xfce桌面环境日历大小问题 #6

Open
shenghuang147 opened this issue Apr 18, 2022 · 0 comments
Open

xfce桌面环境日历大小问题 #6

shenghuang147 opened this issue Apr 18, 2022 · 0 comments

Comments

@shenghuang147
Copy link

图片

图片
你好作者大大,问题如图,尝试过设置主题 的 gtk.css 文件的字体大小,但是并无效果

将字体设置小后只是字体变小了,农历日历依旧只显示 6 列 5 行。 其他行列都跑到了窗口外,

请教一下有没有什么办法设置 日历 的初始位置。

还有就是农历日历需要点击一下日期或者切换一下年月日才能显示。

这是我的 clock.c

1320 
1321       plugin->calendar = lunar_calendar_new ();
1322       gtk_calendar_set_display_options (GTK_CALENDAR (plugin->calendar),
1323                                         GTK_CALENDAR_SHOW_HEADING
1324                                         | GTK_CALENDAR_SHOW_DAY_NAMES
1325                                         | GTK_CALENDAR_SHOW_WEEK_NUMBERS
1326                                         | GTK_CALENDAR_SHOW_DETAILS);
1327       g_signal_connect (G_OBJECT (plugin->calendar_window), "show",
1328                         G_CALLBACK (clock_plugin_calendar_show_event), plugin);
1329       g_signal_connect (G_OBJECT (plugin->calendar_window), "button-press-event",
1330                         G_CALLBACK (clock_plugin_calendar_button_press_event), plugin);
1331       g_signal_connect (G_OBJECT (plugin->calendar_window), "key-press-event",
1332                         G_CALLBACK (clock_plugin_calendar_key_press_event), plugin);
1333       gtk_container_add (GTK_CONTAINER (plugin->calendar_window), plugin->calendar);
1334       gtk_widget_show (plugin->calendar);
1335     }
1336 

这是我的gtk.css 文件

/************
 * Calendar *
 ************/
calendar {
  padding: 12px;
  font-size: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

calendar:disabled {
  color: rgba(80, 80, 80, 0.5);
}

calendar:selected {
  border-radius: 64px;
}

calendar.header {
  border-style: none none solid;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 64px;
}

calendar.highlight {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

calendar:indeterminate {
  color: rgba(255, 255, 255, 0.3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant