diff options
author | Ilhan Yesil <ilhanyesil@gmx.de> | 2022-07-01 08:17:19 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-09-19 13:30:15 +0200 |
commit | ba164651bbdbde1b8a4ae3495b845ebc13b01bad (patch) | |
tree | c644f0a92667443ed06a514a20befa1c71d7928a /offapi | |
parent | 891d618bfdcf369119807d826e8ec6e3b112d73c (diff) |
tdf#149797 Change highlight background color in some controls
The highlight and highlighttext colors can be set for some
controls. So as example a selected item in a listbox can now
be paint with anothers colors then the standard blue. Controls
are: listbox, combobox, edit field and some special edit
fields like date, currency and others.
Change-Id: Iace2dd9a1a61abb7819b6c81eb0b8030912db32b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136691
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'offapi')
10 files changed, 120 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl index 6f21f0ff913f..929586f5f5fc 100644 --- a/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl +++ b/offapi/com/sun/star/awt/UnoControlComboBoxModel.idl @@ -196,6 +196,18 @@ published service UnoControlComboBoxModel @since LibreOffice 5.4 */ [optional, property] sequence<any> TypedItemList; + + /** specifies the background color (RGB) of selected items in the control which are highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected items in the control which are highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl index f6e50b2c8cea..17858c37e29e 100644 --- a/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlCurrencyFieldModel.idl @@ -214,6 +214,18 @@ published service UnoControlCurrencyFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl index e1e0bff11c7a..82ccd12c0a1a 100644 --- a/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlDateFieldModel.idl @@ -225,6 +225,18 @@ published service UnoControlDateFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlEditModel.idl b/offapi/com/sun/star/awt/UnoControlEditModel.idl index c8072ee2becf..9ce4c0408546 100644 --- a/offapi/com/sun/star/awt/UnoControlEditModel.idl +++ b/offapi/com/sun/star/awt/UnoControlEditModel.idl @@ -226,6 +226,18 @@ published service UnoControlEditModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl index 5657c19c15af..c5c1f6fbba54 100644 --- a/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl +++ b/offapi/com/sun/star/awt/UnoControlFixedTextModel.idl @@ -136,6 +136,18 @@ published service UnoControlFixedTextModel @since OOo 2.4 */ [optional, property] boolean NoLabel; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl index c77b3f45210c..36a55fa3b8cc 100644 --- a/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlFormattedFieldModel.idl @@ -253,6 +253,18 @@ published service UnoControlFormattedFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl index 65629c9f3692..965f3be42b8d 100644 --- a/offapi/com/sun/star/awt/UnoControlListBoxModel.idl +++ b/offapi/com/sun/star/awt/UnoControlListBoxModel.idl @@ -189,6 +189,18 @@ published service UnoControlListBoxModel @since LibreOffice 5.4 */ [optional, property] sequence<any> TypedItemList; + + /** specifies the background color (RGB) of selected items in the control which are highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected items in the control which are highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl index 5ca7fb756274..c54b10105bc0 100644 --- a/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlNumericFieldModel.idl @@ -204,6 +204,18 @@ published service UnoControlNumericFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl index a05788a2fb1e..8cc043183500 100644 --- a/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlPatternFieldModel.idl @@ -168,6 +168,18 @@ published service UnoControlPatternFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl index 79638707d8fd..a97ec8c71a14 100644 --- a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl @@ -209,6 +209,18 @@ published service UnoControlTimeFieldModel @since OOo 3.3 */ [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; + + /** specifies the background color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightColor; + + /** specifies the text color (RGB) of selected text in the control which is highlighted. + + @since LibreOffice 7.5 + */ + [optional, property] com::sun::star::util::Color HighlightTextColor; }; |