Toolitem: Set Clear direct formatting btns with the same css class

Before this commit:
- Impress on tabbed and compact view didn't have the common (and in
used in the other apps) 'unoResetAttributes' css class

Set all with the same CSS class so integrators with customizations
are not force to single out special cases.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82deb98a628b527470fcd2e54f1374df21380bfa
This commit is contained in:
Pedro Pinto Silva 2024-05-29 09:30:14 +02:00 committed by pedropintosilva
parent 11682f1fc8
commit cc8febf7fa
2 changed files with 2 additions and 1 deletions

View file

@ -535,6 +535,7 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
},
{
'id': 'home-set-default',
'class': 'unoResetAttributes',
'type': 'toolitem',
'text': _UNO('.uno:SetDefault'),
'command': '.uno:SetDefault',

View file

@ -115,7 +115,7 @@ class TopToolbar extends JSDialog.Toolbar {
{type: 'separator', orientation: 'vertical', id: 'redobreak', mobile: false, tablet: false,},
{type: 'toolitem', id: 'formatpaintbrush', text: _UNO('.uno:FormatPaintbrush'), command: '.uno:FormatPaintbrush', mobile: false},
{type: 'toolitem', id: 'reset', text: _UNO('.uno:ResetAttributes', 'text'), visible: false, command: '.uno:ResetAttributes', mobile: false},
{type: 'toolitem', id: 'resetimpress', text: _UNO('.uno:SetDefault', 'presentation', 'true'), visible: false, command: '.uno:SetDefault', mobile: false},
{type: 'toolitem', id: 'resetimpress', class: 'unoResetAttributes', text: _UNO('.uno:SetDefault', 'presentation', 'true'), visible: false, command: '.uno:SetDefault', mobile: false},
{type: 'separator', orientation: 'vertical', id: 'breakreset', invisible: true, mobile: false, tablet: false,},
{type: 'listbox', id: 'styles', text: _('Default Style'), desktop: true, mobile: false, tablet: false},
{type: 'listbox', id: 'fontnamecombobox', text: 'Carlito', command: '.uno:CharFontName', mobile: false},