wio

a wayland wm stylised after plan9 rio - forked from git.sr.ht/~srcmpwn/wio
git clone git://src.gearsix.net/wio
Log | Files | Refs | Atom | Submodules | README | LICENSE

commit 3984baaca22ff7847a4583efbd9b66b2bbac5b6e
parent 9783a401edb19cc350b67f19114afde962644d81
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed,  9 Jan 2019 23:08:40 -0500

Add authentic rio colors

Diffstat:
Ainclude/colors.h | 28++++++++++++++++++++++++++++
Mmain.c | 4++--
2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/include/colors.h b/include/colors.h @@ -0,0 +1,28 @@ +#ifndef _WIO_COLORS_H +#define _WIO_COLORS_H + +static const float background[4] = { + 0x77 / 255.0f, 0x77 / 255.0f, 0x77 / 255.0f, 1.0f, +}; + +static const float active_border[4] = { + 0x59 / 255.0f, 0xAB / 255.0f, 0xAB / 255.0f, 1.0f, +}; + +static const float inactive_border[4] = { + 0x9C / 255.0f, 0xE9 / 255.0f, 0xE9 / 255.0f, 1.0f, +}; + +static const float menu_selected[4] = { + 0x3D / 255.0f, 0x7D / 255.0f, 0x42 / 255.0f, 1.0f, +}; + +static const float menu_unselected[4] = { + 0xEB / 255.0f, 0xFF / 255.0f, 0xEC / 255.0f, 1.0f, +}; + +static const float menu_border[4] = { + 0x78 / 255.0f, 0xAD / 255.0f, 0x84 / 255.0f, 1.0f, +}; + +#endif diff --git a/main.c b/main.c @@ -8,6 +8,7 @@ #include <wlr/types/wlr_output.h> #include <wlr/render/wlr_renderer.h> #include <wlr/util/log.h> +#include "colors.h" #include "server.h" static void output_frame(struct wl_listener *listener, void *data) { @@ -25,8 +26,7 @@ static void output_frame(struct wl_listener *listener, void *data) { wlr_output_effective_resolution(output->wlr_output, &width, &height); wlr_renderer_begin(renderer, width, height); - float color[4] = {0.3, 0.3, 0.3, 1.0}; - wlr_renderer_clear(renderer, color); + wlr_renderer_clear(renderer, background); // TODO: other stuff wlr_renderer_end(renderer); wlr_output_swap_buffers(output->wlr_output, NULL, NULL);