Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
virtboard
Commits
df97643c
Commit
df97643c
authored
Feb 07, 2019
by
Dorota Czaplejewicz
Browse files
style: Change coloring
parent
49b04fb6
Pipeline
#4151
passed with stage
in 1 minute
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
clients/keyboard.c
View file @
df97643c
...
...
@@ -447,19 +447,21 @@ draw_key(struct keyboard *keyboard, const struct key *key, cairo_t *cr,
key
->
width
*
key_width
,
key_height
);
cairo_fill
(
cr
);
cairo_set_source_rgb
(
cr
,
1
,
1
,
1
);
}
}
else
{
/* Paint frame */
cairo_rectangle
(
cr
,
col
*
key_width
,
row
*
key_height
,
key
->
width
*
key_width
,
key_height
);
cairo_set_line_width
(
cr
,
3
);
cairo_stroke
(
cr
);
}
/* Paint text */
label
=
label_from_key
(
keyboard
,
key
);
cairo_text_extents
(
cr
,
label
,
&
extents
);
cairo_set_source_rgb
(
cr
,
1
,
1
,
1
);
cairo_translate
(
cr
,
col
*
key_width
,
row
*
key_height
);
...
...
@@ -528,7 +530,7 @@ redraw_handler(struct widget *widget, void *data)
cairo_set_font_size
(
cr
,
16
);
cairo_set_operator
(
cr
,
CAIRO_OPERATOR_SOURCE
);
cairo_set_source_rgb
a
(
cr
,
1
,
1
,
1
,
0
.
75
);
cairo_set_source_rgb
(
cr
,
0
.
27450980392156865
,
0
.
26666666666666666
,
0
.
2823529411764706
);
cairo_rectangle
(
cr
,
0
,
0
,
layout
->
columns
*
key_width
,
layout
->
rows
*
key_height
);
cairo_paint
(
cr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment