gnome-shell/data/theme/gnome-shell-sass
Marco Trevisan (Treviño) dab60d5580 renameFolderMenu: Use a custom menu item inheriting from PopupBaseMenuItem
The RenameFolderMenu uses the internal box as a menu item, while PopupMenu
expects to have PopupBaseMenuItem based children with a delegate set.

Instead of using a custom menu with a customized box acting as menu
item,just add a RenameFolderMenuItem that inherits from the parent,
adjusting the features as we need them. In fact, the rename folder menu item
doesn't need any label, padding or default styling so we can reuse
PopupMenuBaseItem after we use our styling properties and we set the
Ornament to HIDDEN.

To get the proper style in place, define rename-folder-popup and
rename-folder-popup-item to override the default popup-menu-item rule
padding instead of using margins.

Pass the menu item as menu's focusActor as this will key-focus it on pop-up,
by overriding the key_focus_in() vfunc we can then delegate the focus
handling to the entry's clutter-text.

Also override the map() vfunc in order to update the entry's content before
mapping the entry.

Finally, use the item's activate method in order to tell the parent menu
we're done with it and that the menu can be closed.

As consequence we can also remove the menu's popup() method, and just use
the default open().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/720
2019-09-20 15:53:42 +00:00
..
_colors.scss Theme: update to sync with gtk Adwaita 2019-06-21 10:44:08 +02:00
_common.scss renameFolderMenu: Use a custom menu item inheriting from PopupBaseMenuItem 2019-09-20 15:53:42 +00:00
_drawing.scss Theme: update to sync with gtk Adwaita 2019-06-21 10:44:08 +02:00
_high-contrast-colors.scss Theme: update to sync with gtk Adwaita 2019-06-21 10:44:08 +02:00
COPYING theme: Replace gnome-shell-sass submodule with subtree 2018-02-09 21:45:09 +00:00
gnome-shell-sass.doap theme: Replace gnome-shell-sass submodule with subtree 2018-02-09 21:45:09 +00:00
NEWS theme: Replace gnome-shell-sass submodule with subtree 2018-02-09 21:45:09 +00:00
README.md docs: Clarify where style changes should be done 2018-05-23 19:03:01 +02:00

GNOME Shell Sass

GNOME Shell Sass is a project intended to allow the sharing of the theme sources in sass between gnome-shell and other projects like gnome-shell-extensions.

Any changes should be done in the GNOME Shell subtree and not the stand-alone gnome-shell-sass repository. They will then be synchronized periodically before releases.

License

GNOME Shell Sass is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for details.