Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuki
gajim-plugins
Commits
d94d1550
Commit
d94d1550
authored
Feb 22, 2019
by
Philipp Hörist
Browse files
[omemo] KeyDialog: Adjust css
parent
85342c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/gtk/key.py
View file @
d94d1550
...
...
@@ -186,6 +186,7 @@ class KeyRow(Gtk.ListBoxRow):
self
.
fingerprint
=
Gtk
.
Label
(
label
=
self
.
_identity_key
.
get_fingerprint
(
formatted
=
True
))
self
.
fingerprint
.
get_style_context
().
add_class
(
'omemo-mono'
)
self
.
fingerprint
.
get_style_context
().
add_class
(
'omemo-inactive-color'
)
self
.
fingerprint
.
set_selectable
(
True
)
self
.
fingerprint
.
set_halign
(
Gtk
.
Align
.
START
)
...
...
@@ -238,9 +239,12 @@ class KeyRow(Gtk.ListBoxRow):
@
active
.
setter
def
active
(
self
,
active
):
context
=
self
.
fingerprint
.
get_style_context
()
self
.
_active
=
bool
(
active
)
css_class
=
'omemo-mono'
if
self
.
_active
else
'omemo-inactive-color'
self
.
fingerprint
.
get_style_context
().
add_class
(
css_class
)
if
self
.
_active
:
context
.
remove_class
(
'omemo-inactive-color'
)
else
:
context
.
add_class
(
'omemo-inactive-color'
)
self
.
_trust_button
.
update
()
@
property
...
...
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