mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
emojichooser: Add .emoji-searchbar style class
Similar to .emoji-toolbar, it would be nice to have this for styling.
This commit is contained in:
parent
8e3f2b879e
commit
90355c0b27
@ -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.
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user