mirror of git://git.suckless.org/svkbd
Removed grid drwawing and set different slightly theme for abc keys
This commit is contained in:
parent
6f3308b327
commit
9fd94b637a
|
@ -7,7 +7,8 @@ static const char *fonts[] = {
|
||||||
};
|
};
|
||||||
static const char *colors[SchemeLast][2] = {
|
static const char *colors[SchemeLast][2] = {
|
||||||
/* fg bg */
|
/* fg bg */
|
||||||
[SchemeNorm] = { "#ffffff", "#14313d" },
|
[SchemeNorm] = { "#bbbbbb", "#132a33" },
|
||||||
|
[SchemeNormABC] = { "#ffffff", "#14313d" },
|
||||||
[SchemePress] = { "#ffffff", "#000000" },
|
[SchemePress] = { "#ffffff", "#000000" },
|
||||||
[SchemeHighlight] = { "#58a7c6", "#005577" },
|
[SchemeHighlight] = { "#58a7c6", "#005577" },
|
||||||
};
|
};
|
||||||
|
|
7
svkbd.c
7
svkbd.c
|
@ -33,7 +33,7 @@
|
||||||
#define STRINGTOKEYSYM(X) (XStringToKeySym(X))
|
#define STRINGTOKEYSYM(X) (XStringToKeySym(X))
|
||||||
|
|
||||||
/* enums */
|
/* enums */
|
||||||
enum { SchemeNorm, SchemePress, SchemeHighlight, SchemeLast };
|
enum { SchemeNorm, SchemeNormABC, SchemePress, SchemeHighlight, SchemeLast };
|
||||||
enum { NetWMWindowType, NetLast };
|
enum { NetWMWindowType, NetLast };
|
||||||
|
|
||||||
/* typedefs */
|
/* typedefs */
|
||||||
|
@ -285,10 +285,13 @@ drawkey(Key *k)
|
||||||
drw_setscheme(drw, scheme[SchemePress]);
|
drw_setscheme(drw, scheme[SchemePress]);
|
||||||
else if (k->highlighted)
|
else if (k->highlighted)
|
||||||
drw_setscheme(drw, scheme[SchemeHighlight]);
|
drw_setscheme(drw, scheme[SchemeHighlight]);
|
||||||
|
else if ((k->keysym == XK_Return) ||
|
||||||
|
((k->keysym >= XK_a) && (k->keysym <= XK_z)) ||
|
||||||
|
((k->keysym >= XK_Cyrillic_io) && (k->keysym <= XK_Cyrillic_hardsign)))
|
||||||
|
drw_setscheme(drw, scheme[SchemeNormABC]);
|
||||||
else
|
else
|
||||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
drw_rect(drw, k->x, k->y, k->w, k->h, 1, 1);
|
drw_rect(drw, k->x, k->y, k->w, k->h, 1, 1);
|
||||||
drw_rect(drw, k->x, k->y, k->w, k->h, 0, 0);
|
|
||||||
|
|
||||||
if (k->keysym == XK_KP_Insert) {
|
if (k->keysym == XK_KP_Insert) {
|
||||||
if (enableoverlays) {
|
if (enableoverlays) {
|
||||||
|
|
Loading…
Reference in New Issue