granite icon indicating copy to clipboard operation
granite copied to clipboard

Add BackButton

Open leolost2605 opened this issue 2 years ago • 2 comments

Introduce a BackButton that automatically lables itself correctly with the preceding page and navigates back when clicked. Useful for elementary/switchboard#300 as well as in videos, appcenter, etc.

This will introduce an Adw dependency with minimum required version 1.4 which will break building granite on OS 7

leolost2605 avatar Mar 01 '24 22:03 leolost2605

It now won't hide when there is no preceding page since that caused problems with it not being mapped again because it's not visible so that it won't recheck whether anything changed. It could still be implemented if needed but since there's usually always exactly one page that's the first and we know which one it is (Home on appcenter, category on settings, welcome on videos) I don't think it's worth the effort.

leolost2605 avatar Mar 02 '24 00:03 leolost2605

I think @tintou has some thoughts about adding Adw as a dep here in Granite

danirabbit avatar Mar 07 '24 18:03 danirabbit