Bug 150008

Summary: Use the GTK3 / GTK4 "destructive-action" CSS class for the unsaved changes confirmation dialogs
Product: LibreOffice Reporter: Jeff Fortin Tam <nekohayo>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: 79045_79045
Priority: medium    
Version: 7.2.2.2 release   
Hardware: All   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150007
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103182    

Description Jeff Fortin Tam 2022-07-15 18:30:42 UTC
A bit like issue #15007 in reverse. Throughout LibreOffice, when you try to close a document with unsaved changes, the app prompts you with a confirmation dialog. On some platforms, it uses a GTK dialog to do so.

In that case, it should also apply the "destructive-action" CSS class/styling to the most dangerous button in that dialog, "Don't Save"

See also:
https://developer.gnome.org/hig/patterns/controls/buttons.html#button-styles
https://docs.gtk.org/gtk3/const.STYLE_CLASS_DESTRUCTIVE_ACTION.html
Comment 1 Caolán McNamara 2022-11-02 19:36:51 UTC
We do this already since 7.3, see sfx2/uiconfig/ui/querysavedialog.ui which is the general file save case. and under gtk the "Don't Save" is highlighted with the red danger background.

(also seen in svx/uiconfig/ui/deletefooterdialog.ui and 
svx/uiconfig/ui/deleteheaderdialog.ui which are undoable actions)