[gnome-builder] search-entry: use the same theming as our Gedit cousin
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] search-entry: use the same theming as our Gedit cousin
- Date: Tue, 9 Feb 2016 20:46:15 +0000 (UTC)
commit 51eb0fb2eba46c3120502f2cae93e6dc75de8153
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Feb 9 21:40:26 2016 +0100
search-entry: use the same theming as our Gedit cousin
We use the same theming as Gedit for the GdTaggedEntry
occurence tag (number of searched results)
data/theme/shared.css | 7 +++++++
libide/editor/ide-editor-frame.c | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/shared.css b/data/theme/shared.css
index 0b435b0..c7b98ac 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -42,3 +42,10 @@ frame.gb-search-frame border {
.floating-bar button {
padding: 4px;
}
+
+.gb-search-entry-occurrences-tag {
+ color: shade (@theme_unfocused_fg_color, 0.8);
+ border: 0px;
+ margin: 2px;
+ padding: 2px;
+}
diff --git a/libide/editor/ide-editor-frame.c b/libide/editor/ide-editor-frame.c
index c63cc96..e2ead8a 100644
--- a/libide/editor/ide-editor-frame.c
+++ b/libide/editor/ide-editor-frame.c
@@ -195,6 +195,8 @@ ide_editor_frame_set_position_label (IdeEditorFrame *self,
{
self->search_entry_tag = gd_tagged_entry_tag_new ("");
gd_tagged_entry_add_tag (self->search_entry, self->search_entry_tag);
+ gd_tagged_entry_tag_set_style (self->search_entry_tag,
+ "gb-search-entry-occurrences-tag");
}
gd_tagged_entry_tag_set_label (self->search_entry_tag, text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]