[lightsoff/wip/gtkview] Added keyboard handling
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/wip/gtkview] Added keyboard handling
- Date: Sun, 15 Jul 2018 12:41:16 +0000 (UTC)
commit e367d30f19e50131bc4dbdab50922d60738c283c
Author: Robert Roth <robert roth off gmail com>
Date: Sun Jul 15 15:40:50 2018 +0300
Added keyboard handling
data/lightsoff.css | 8 +++++++-
src/lightsoff-window.vala | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/data/lightsoff.css b/data/lightsoff.css
index 94e0ad8..0a16e20 100644
--- a/data/lightsoff.css
+++ b/data/lightsoff.css
@@ -12,7 +12,13 @@
box-shadow: none;
transition-duration: 300ms;
transition-timing-function: linear;
- outline: none;
+ /*outline: none;*/
+}
+
+.grid > .toggle:focus {
+ outline-offset: -15px;
+ outline-width: 3px;
+ outline-style: inset;
}
.grid > .toggle:checked/*, .grid > .toggle:hover */{
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index 10891c6..1f93d42 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -86,6 +86,7 @@ public class LightsoffWindow : ApplicationWindow
private void update_subtitle (int moves)
{
headerbar.subtitle = ngettext ("%d move", "%d moves", moves).printf (moves);
+ set_focus_visible (false);
}
private void update_title (int level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]