style: fix spacing issues
This commit is contained in:
parent
0f81338bb6
commit
6da4df255c
@ -91,7 +91,7 @@ void Bar::show(wl_output* output)
|
||||
zwlr_layer_surface_v1_add_listener(_layerSurface.get(), &_layerSurfaceListener, this);
|
||||
auto anchor = topbar ? ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP : ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM;
|
||||
zwlr_layer_surface_v1_set_anchor(_layerSurface.get(),
|
||||
anchor | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT);
|
||||
anchor | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT);
|
||||
|
||||
auto barSize = barfont.height + paddingY * 2;
|
||||
zwlr_layer_surface_v1_set_size(_layerSurface.get(), 0, barSize);
|
||||
@ -196,8 +196,8 @@ void Bar::renderTags()
|
||||
{
|
||||
for (auto &tag : _tags) {
|
||||
setColorScheme(
|
||||
tag.state & ZNET_TAPESOFTWARE_DWL_WM_MONITOR_V1_TAG_STATE_ACTIVE ? colorActive : colorInactive,
|
||||
tag.state & ZNET_TAPESOFTWARE_DWL_WM_MONITOR_V1_TAG_STATE_URGENT);
|
||||
tag.state & ZNET_TAPESOFTWARE_DWL_WM_MONITOR_V1_TAG_STATE_ACTIVE ? colorActive : colorInactive,
|
||||
tag.state & ZNET_TAPESOFTWARE_DWL_WM_MONITOR_V1_TAG_STATE_URGENT);
|
||||
renderComponent(tag.component);
|
||||
auto indicators = std::min(tag.numClients, _bufs->height/2);
|
||||
for (auto ind = 0; ind < indicators; ind++) {
|
||||
@ -231,7 +231,8 @@ void Bar::setColorScheme(const ColorScheme& scheme, bool invert)
|
||||
}
|
||||
static void setColor(cairo_t* painter, const Color& color)
|
||||
{
|
||||
cairo_set_source_rgba(painter, color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0);
|
||||
cairo_set_source_rgba(painter,
|
||||
color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0);
|
||||
}
|
||||
void Bar::beginFg() { setColor(_painter, _colorScheme.fg); }
|
||||
void Bar::beginBg() { setColor(_painter, _colorScheme.bg); }
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
resetBuffer();
|
||||
}
|
||||
}
|
||||
private:
|
||||
private:
|
||||
template<typename Consumer>
|
||||
void dispatchLines(const Consumer& consumer)
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ void tag(Monitor& m, const Arg& arg)
|
||||
}
|
||||
void toggletag(Monitor& m, const Arg& arg)
|
||||
{
|
||||
znet_tapesoftware_dwl_wm_monitor_v1_set_client_tags(m.dwlMonitor.get(), 0xffffff, arg.ui);
|
||||
znet_tapesoftware_dwl_wm_monitor_v1_set_client_tags(m.dwlMonitor.get(), ~0, arg.ui);
|
||||
}
|
||||
void spawn(Monitor&, const Arg& arg)
|
||||
{
|
||||
@ -150,7 +150,7 @@ static const struct wl_pointer_listener pointerListener = {
|
||||
wl_surface_commit(cursorSurface);
|
||||
}
|
||||
wl_pointer_set_cursor(pointer, serial, cursorSurface,
|
||||
cursorImage->hotspot_x, cursorImage->hotspot_y);
|
||||
cursorImage->hotspot_x, cursorImage->hotspot_y);
|
||||
},
|
||||
.leave = [](void* sp, wl_pointer*, uint32_t serial, wl_surface*) {
|
||||
auto& seat = *static_cast<Seat*>(sp);
|
||||
|
Loading…
Reference in New Issue
Block a user