emojichooser: Add .emoji-searchbar style class

Similar to .emoji-toolbar, it would be nice to have this for styling.
This commit is contained in:
nana-4 2020-12-12 16:32:27 +09:00
parent 8e3f2b879e
commit 90355c0b27
2 changed files with 16 additions and 4 deletions

View File

@ -54,6 +54,8 @@
* # CSS nodes
* |[<!-- language="plain" -->
* popover
* box.emoji-searchbar
* entry.search
* box.emoji-toolbar
* button.image-button.emoji-section
* ...
@ -63,6 +65,8 @@
* Every #GtkEmojiChooser consists of a main node called popover.
* The contents of the popover are largely implementation defined
* and supposed to inherit general styles.
* The top searchbar used to search emoji and gets the .emoji-searchbar
* style class itself.
* The bottom toolbar used to switch between different emoji categories
* consists of buttons with the .emoji-section style class and gets the
* .emoji-toolbar style class itself.

View File

@ -8,9 +8,17 @@
<object class="GtkBox" id="box">
<property name="orientation">vertical</property>
<child>
<object class="GtkSearchEntry" id="search_entry">
<signal name="search-changed" handler="search_changed"/>
<signal name="stop-search" handler="stop_search"/>
<object class="GtkBox">
<style>
<class name="emoji-searchbar"/>
</style>
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="hexpand">1</property>
<signal name="search-changed" handler="search_changed"/>
<signal name="stop-search" handler="stop_search"/>
</object>
</child>
</object>
</child>
<child>
@ -211,7 +219,7 @@
<child>
<object class="GtkBox">
<style>
<class name="emoji-toolbar" />
<class name="emoji-toolbar"/>
</style>
<child>
<object class="GtkButton" id="recent.button">