mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-08-28 14:52:12 +02:00
for the mobile layout, we want shift+space to produce tab , which needed to be implemented in the main code. For the desktop layout, we don't want this though, a config parameter now handles this at compile time. Ref: https://github.com/jjsullivan5196/wvkbd/pull/103
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
#ifndef config_h_INCLUDED
|
|
#define config_h_INCLUDED
|
|
|
|
#define DEFAULT_FONT "Sans 14"
|
|
#define DEFAULT_ROUNDING 5
|
|
#define SHIFT_SPACE_IS_TAB
|
|
static const int transparency = 255;
|
|
|
|
struct clr_scheme schemes[] = {
|
|
{
|
|
/* colors */
|
|
.bg = {.bgra = {15, 15, 15, transparency}},
|
|
.fg = {.bgra = {45, 45, 45, transparency}},
|
|
.high = {.bgra = {100, 100, 100, transparency}},
|
|
.swipe = {.bgra = {100, 255, 100, 64}},
|
|
.text = {.color = UINT32_MAX},
|
|
.font = DEFAULT_FONT,
|
|
.rounding = DEFAULT_ROUNDING,
|
|
},
|
|
{
|
|
/* colors */
|
|
.bg = {.bgra = {15, 15, 15, transparency}},
|
|
.fg = {.bgra = {32, 32, 32, transparency}},
|
|
.high = {.bgra = {100, 100, 100, transparency}},
|
|
.swipe = {.bgra = {100, 255, 100, 64}},
|
|
.text = {.color = UINT32_MAX},
|
|
.font = DEFAULT_FONT,
|
|
.rounding = DEFAULT_ROUNDING,
|
|
}
|
|
};
|
|
|
|
/* layers is an ordered list of layouts, used to cycle through */
|
|
static enum layout_id layers[] = {
|
|
Full, // First layout is the default layout on startup
|
|
Special,
|
|
NumLayouts // signals the last item, may not be omitted
|
|
};
|
|
|
|
/* layers is an ordered list of layouts, used to cycle through */
|
|
static enum layout_id landscape_layers[] = {
|
|
Landscape, // First layout is the default layout on startup
|
|
LandscapeSpecial,
|
|
NumLayouts // signals the last item, may not be omitted
|
|
};
|
|
|
|
#endif // config_h_INCLUDED
|