improvements

This commit is contained in:
pmakhov 2017-12-04 17:10:19 -05:00
parent c2ddb3a38d
commit 3c19b57643
1 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,6 @@
package.path = package.path .. ";../../secrets.lua" package.path = package.path .. ";../../secrets.lua"
local secrets = require("secrets") local secrets = require("secrets")
local awful = require("awful") local awful = require("awful")
local gears = require("gears")
local json = require("json") local json = require("json")
local https = require("ssl.https") local https = require("ssl.https")
local wibox = require("wibox") local wibox = require("wibox")
@ -28,25 +27,26 @@ local function urlencode(str)
end end
local translate_widget_txt = wibox.widget { local translate_widget_txt = wibox.widget {
-- align = 'center',
layout = wibox.layout.flex.vertical layout = wibox.layout.flex.vertical
} }
local lang_wdgt = wibox.widget{ local lang_wdgt = wibox.widget{
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
align = 'center', -- align = 'center',
valign = 'center' -- valign = 'center'
} }
local to_translate_wdgt = wibox.widget{ local to_translate_wdgt = wibox.widget{
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
align = 'center', -- align = 'center',
valign = 'center' -- valign = 'center'
} }
local translation_wdgt = wibox.widget{ local translation_wdgt = wibox.widget{
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
align = 'center', -- align = 'center',
valign = 'center', -- valign = 'center',
wrap = 'word_char', wrap = 'word_char',
} }