LINUX.ORG.RU

Проблема с отрисовкой текста в widget.WindowName

 


0

1
# --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# Theme section
# --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
class Theme(object):
    bar = {
        'size': 16,
        'background': '#222222',
        'other_screen_border': '#444444',
    }

    widget = {
        'font': 'Terminus',
        'fontsize': 16,
        'foreground': '#8fb28f',
        'max_chars': 100,
        'margin': 2,
        'padding': 1,
    }

    groupbox = widget.copy()
    groupbox.update({
        'padding': 5,
        'borderwidth': 2.1,
        'use_mouse_wheel': False,
        'disable_drag': True,
        'highlight_method': 'block',
        'rounded': False,
        'active': '#8fb28f',
        'block_highlight_text_color': '#eeeeee',
        'this_current_screen_border': '#444444',
        'toggle': False,
    })

    systray = widget.copy()
    systray.update({
        'icon_size': 14,
        'padding': 2,
    })


# --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
# Screen section
# --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
screens = [
    Screen(
        top=bar.Bar(widgets=[
            widget.GroupBox(**Theme.groupbox),
            widget.WindowName(
                **Theme.widget,
            ),
            widget.Systray(**Theme.systray),
            ], **Theme.bar),
    ),
]

Результат: https://cdn.imgchest.com/files/49zc2oj2oby.png

/home/user не центрирована, а хотелось бы или центрировать или иметь возможность ее сдвинуть по-вертикали

★★★★

Последнее исправление: bryak (всего исправлений: 1)