awesome/tests/examples/wibox/widget/calendar/font.lua

19 lines
598 B
Lua
Raw Normal View History

2017-03-31 01:00:04 +02:00
local parent = ... --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
local beautiful = require( "beautiful" ) --DOC_HIDE
local Pango = require("lgi").Pango --DOC_HIDE
require("_date") --DOC_HIDE
2017-03-31 01:00:04 +02:00
-- Beautiful fake get_font --DOC_HIDE
local f = Pango.FontDescription.from_string("sans 12") --DOC_HIDE
beautiful.get_font = function() return f end --DOC_HIDE
-- Fake beautiful theme --DOC_HIDE
beautiful.fg_focus = "#ff9800" --DOC_HIDE
beautiful.bg_focus = "#b9214f" --DOC_HIDE
local cal = wibox.widget.calendar.month(
os.date("*t"), "sans 12")
parent:add(cal) --DOC_HIDE