[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolo
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects |
Date: |
Mon, 27 Apr 2020 12:22:29 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #58261 (project octave):
Status: Confirmed => In Progress
_______________________________________________________
Follow-up Comment #1:
@gyom: Can you test in Matlab if there is any other uicontrol object which has
this special background quirk of using white instead of the gray value
specified in "backgroundcolor"?
In Octave, the code that will be modified to make a special exception is
if (props.style_is ("edit")
|| props.style_is ("listbox"))
{
p.setColor (QPalette::Active, QPalette::Base,
Utils::fromRgb (props.get_backgroundcolor_rgb ()));
p.setColor (QPalette::Inactive, QPalette::Base,
Utils::fromRgb (props.get_backgroundcolor_rgb ()));
p.setColor (QPalette::Active, QPalette::Text,
Utils::fromRgb (props.get_foregroundcolor_rgb ()));
p.setColor (QPalette::Inactive, QPalette::Text,
Utils::fromRgb (props.get_foregroundcolor_rgb ()));
}
If "listbox" doesn't also use a white background then I will need to split the
code up and add another elseif branch. Also, if there *are* any other style
types which use white then I need to add them to the if branch here.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58261>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects,
Rik <=
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Guillaume, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Pantxo Diribarne, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Guillaume, 2020/04/28
- [Octave-bug-tracker] [bug #58261] Matlab uses [1 1 1] for backgroundcolor of uicontrol Edit objects, Rik, 2020/04/28