bugGNU Octave - Bugs: bug #54065, Colors of a uicontrol pushbutton

 
 

bug #54065: Colors of a uicontrol pushbutton

Submitter:  Guillaume <gyom>
Submitted:  Tue 05 Jun 2018 04:14:51 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Works For Me Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 22 Jun 2018 02:47:38 PM UTC, comment #6: 

Closing for now.

Rik <rik5>
Group administrator
Fri 22 Jun 2018 10:10:54 AM UTC, comment #5: 

I upgraded my OS (to openSUSE Leap 15.0) and pushbuttons are now displayed correctly with both 4.4 and dev (see attachment). I still see the issue when running Octave from a VM though. This makes me wonder whether it can be related to the graphics drivers...
Given that I was the only one to complain about this and that I don't observe the issue any more on my main development platform, I suggest we close this bug report for now and re-open it later if further details emerge.


Guillaume <gyom>
Thu 14 Jun 2018 09:14:05 AM UTC, comment #4: 

Separating the creation of figure and uicontrol or manually changing colors of the uicontrol object do not change the display. I don't think it's a race condition here.
I add @dastew in this bug report as he could confirm the issue too.

Guillaume <gyom>
Wed 13 Jun 2018 04:49:03 PM UTC, comment #3: 

@Guillaume: Did separating the creation of the figure and the call to uicontrol change the behavior at all?  There are still various race conditions in the GUI interface.

Also, if you manually change the colors of the uicontrol object can you get them to work?

Rik <rik5>
Group administrator
Wed 13 Jun 2018 09:44:30 AM UTC, comment #2: 

Trying on a different platform, the colors are not as expected on both packaged 4.4 and self-compiled dev. When I asked on IRC, some reported it displayed ok for them but others saw the same thing than me (e.g. Doug if I remember correctly).

Guillaume <gyom>
Tue 12 Jun 2018 03:35:25 PM UTC, comment #1: 

This works for me.  The pushbutton with Qt5 using a self-compiled version of the dev branch has a green background and red text.

This is likely to be something machine specific to the particular libraries you have installed and which ones were found by configure when you compiled Octave.

Another thing to try would be to create the figure first, just to make sure there are no race conditions, and then create the button.


hf = figure;
uicontrol (hf,"Style","pushbutton","String",["Octave " version],"BackgroundColor",[0 1 0],"ForegroundColor",[1 0 0])



Rik <rik5>
Group administrator
Tue 05 Jun 2018 04:14:51 PM UTC, original submission:  

Running the following on Octave 4.4 and dev:


uicontrol (figure (),"Style","pushbutton","String",["Octave " version],"BackgroundColor",[0 1 0],"ForegroundColor",[1 0 0])


I get different displays, see attached screenshot.

Octave 4.4 is provided by a system package (Qt4) while dev is compiled with Qt5. According to some tests made by others (on IRC) it doesn't seem to relate directly to Octave or Qt version.

Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #44416:  pushbutton2.png added by gyom (4KiB - image/png)
file #44303:  pushbutton.png added by gyom (4KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gyom
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-22 rik5 Open/ClosedOpen Closed
    2018-06-22 gyom Attached File- Added pushbutton2.png, #44416
    2018-06-14 gyom Carbon-Copy- Added dastew
    2018-06-12 rik5 StatusNone Works For Me
    2018-06-05 gyom Attached File- Added pushbutton.png, #44303

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code