bcedu / VGrive

Google Drive client for linux
GNU General Public License v3.0
313 stars 33 forks source link

Use destructive-action for the red "Empty the trash" button #10

Closed donadigo closed 4 years ago

donadigo commented 4 years ago

Currently, the "empty the trash" button uses a custom redbutton class. Instead it could use a built-in destructive-action class and be consistent with the rest of the "red" buttons that are present in other apps. You can do it like so:

empty_trash.get_style_context().add_class (Gtk.STYLE_CLASS_DESTRUCTIVE_ACTION);
bcedu commented 4 years ago

Nice! I didn't know the built-in class 👍🏻