BTextView: Fixup AdoptSystemColors() and HasSystemColors()
Replace private _UsesSystemColors() with public HasSystemColors() and make sure to consider the tints when checking if system colors are used or not. Document HasSytemColors() in the Haiku Book. Change-Id: I78de4904d5ddb24b98ad27eb93d4e5ccb330d76a Reviewed-on: https://review.haiku-os.org/c/haiku/+/8897 Haiku-Format: Haiku-format Bot <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
74ef92bc55
commit
16c6cc4418
@@ -1363,11 +1363,32 @@
|
||||
- \c B_DOCUMENT_BACKGROUND_COLOR for LowUIColor()
|
||||
- \c B_DOCUMENT_TEXT_COLOR for HighUIColor()
|
||||
|
||||
This is reimplemented from BView which uses panel colors.
|
||||
|
||||
View and low colors tinted \c B_DARKEN_1_TINT (inverse on dark) if uneditable.
|
||||
|
||||
Does not alter text color.
|
||||
|
||||
\see BView::AdoptSystemColors(), MakeEditable()
|
||||
\see BView::AdoptSystemColors(), MakeEditable(), HasSystemColors()
|
||||
|
||||
\since Haiku R1
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn bool BTextView::HasSystemColors() const
|
||||
\brief Tests whether or not the text view is using system colors.
|
||||
|
||||
- \c B_DOCUMENT_BACKGROUND_COLOR for ViewUIColor() either untinted or \c B_DARKEN_1_TINT
|
||||
- \c B_DOCUMENT_BACKGROUND_COLOR for LowUIColor() either untinted or \c B_DARKEN_1_TINT
|
||||
- \c B_DOCUMENT_TEXT_COLOR for HighUIColor() untinted
|
||||
|
||||
Does not consider text color.
|
||||
|
||||
\returns \c true if using system colors either untinted or using uneditable tint
|
||||
\c false otherwise.
|
||||
|
||||
\see AdoptSystemColors(), MakeEditable()
|
||||
|
||||
\since Haiku R1
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user