visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
432 stars 111 forks source link

Adding appearance settings to command line has no immediate effect on some systems #2513

Open aowen87 opened 5 years ago

aowen87 commented 5 years ago

Ran across the following command line options for visit when mucking with style settings for Qt 5:style, background, foreground font.All are Appearance attributes. Seems not to have any immediate effect on my linux desktop at home.I must open Options->Appearance and turn off 'Use system default'. Seems to work fine from the linux desktop in my office.

-----------------------REDMINE MIGRATION----------------------- This ticket was migrated from Redmine. As such, not all information was able to be captured in the transition. Below is a complete record of the original redmine ticket.

Ticket number: 2509 Status: Pending Project: VisIt Tracker: Bug Priority: Normal Subject: Adding appearance settings to command line has no immediate effect on some systems Assigned to: - Category: - Target version: - Author: Kathleen Biagas Start: 01/11/2016 Due date: % Done: 0% Estimated time: Created: 01/11/2016 08:53 pm Updated: 01/19/2016 06:56 pm Likelihood: 2 - Rare Severity: 2 - Minor Irritation Found in version: 2.10.0 Impact: Expected Use: OS: All Support Group: Any Description: Ran across the following command line options for visit when mucking with style settings for Qt 5:style, background, foreground font.All are Appearance attributes. Seems not to have any immediate effect on my linux desktop at home.I must open Options->Appearance and turn off 'Use system default'. Seems to work fine from the linux desktop in my office.

Comments: Not specificly a Qt 5 issue

biagas commented 4 years ago

Do we still want/need to have command line options for changing appearance?

The options are parsed by QvisGUIApplication.

If we still want the options, help text should also be updated:

Style help text shows qt4 options, needs qt5 options.

-style <style>       One of: windows,cde,motif,sgi.

(on my local linux, the available options are Windows and Fusion. On the linux in my office, GTK+ is also an option. Windows OS has Windows and Fusion. OSX might have different options).

Help test for background/foreground colors isn't informative:

-background <color>  Background color for GUI.
-foreground <color>  Foreground color for GUI.

How does one specify the color? It's a string, but it must be formatted in a way that QColor expects in order to be helpful. see QColor docs

-font is also a command line option (takes a string), but it isn't documented in the help text.