bugGNU Octave - Bugs: bug #66093, uitable: first...

 
 

bug #66093: uitable: first "backgroundcolor" has no effect with "Fusion Dark" theme

Submitter:  Nikolai Wolff <nwolff>
Submitted:  Thu 15 Aug 2024 02:50:47 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 9.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 06 Sep 2024 01:54:22 PM UTC, comment #6: 

I can confirm that this seems to only be an issue with the "Fusion Dark" theme.

Markus Mützel <mmuetzel>
Group administrator
Tue 27 Aug 2024 08:22:51 AM UTC, comment #5: 


> If i switch to the "Fusion-Dark" style, it stops working.


Thanks. That could be a significant part for reproducing this issue.
I'm using a light color scheme. (Don't recall which. Away from the PC currently.)

That could be an issue in upstream Qt6. Or in the way Octave is using it...

Markus Mützel <mmuetzel>
Group administrator
Tue 27 Aug 2024 07:53:36 AM UTC, comment #4: 

Yes, the Screenshot shows what is plotted when starting Octave 9.2.0, and running the example code of comment #1:.
I already have software rendering enabled. Switching to hardware rendering has no effect.

I just did a fresh install of version 9.2.0. With the default GUI style/color scheme it works to setup two alternating colors. If i switch to the "Fusion-Dark" style, it stops working.

I still cannot define more than two alternating colors, which I would expect to be able based on the documentation.

Nikolai Wolff <nwolff>
Tue 27 Aug 2024 07:15:50 AM UTC, comment #3: 

Thank you for the screenshot (for which I assume it is the result of running the commands from comment #1).
Those commands correctly change the background colors for me.

Does it make a difference if you switch to software rendering using the OpenGL switcher in the start menu?

Markus Mützel <mmuetzel>
Group administrator
Tue 27 Aug 2024 07:11:49 AM UTC, comment #2: 

I added a screenshot of the example below.

The first color [0.5 0.5 0.5] is not applied and the background stays white.

I'm using Windows 10 and have software OpenGL activated (in case this might matter).

Nikolai Wolff <nwolff>
Fri 23 Aug 2024 06:29:26 PM UTC, comment #1: 

Could you please show a small example that doesn't work for you?

The following example (based on `demo uitable 1`) changes the row background colors to dark grey and light grey for me:

f = clf ();
m = magic (8);
t = uitable (f, "Data", m, "ColumnWidth", {50}, ...
             "Units", "normalized", "Position", [0.1 0.1 0.8 0.8]);
set(t, 'backgroundcolor', [0.5,0.5,0.5;0.9,0.9,0.9])


Markus Mützel <mmuetzel>
Group administrator
Thu 15 Aug 2024 02:50:47 PM UTC, original submission:  

In the documentation it is stated that there is the possibility to define a multi-row background color but this feature is not working:
https://docs.octave.org/latest/Uitable-Properties.html#XREFuitablebackgroundcolor

  • It is possible to set the property, but the function always uses only the color defined in the second row and applys it to the even numbered lines.
  • Odd numbered lines always have a white background, even if only a 2x3 color matrix is defined as background with "rowstripping" set "on".


In the source code there is a "FIXME" comment:
https://github.com/gnu-octave/octave/blob/f28ed6ef37298533c6993fc58ae2a31b3e81634c/libgui/graphics/Table.cc#L1389

Nikolai Wolff <nwolff>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56389:  2024-08-27@09_03_09-Window.png added by nwolff (34KiB - image/png - I attached the output on my system. It is as described by my initial post. The first color [0.5 0.5 0.5] is ignored and the backround stays white. The second color is aplied.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by nwolff (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-06 mmuetzel StatusNeed Info Confirmed
        Summaryuitable implementation of backgroundcolor not complete/as documented uitable: first "backgroundcolor" has no effect with "Fusion Dark" theme
    2024-08-27 nwolff Attached File- Added 2024-08-27@09_03_09-Window.png, #56389
    2024-08-23 mmuetzel StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code