Bug 465511

Summary: Color schemes issue - the color of the sky background is not applied
Product: [Applications] kstars Reporter: mandras71
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: CONFIRMED ---    
Severity: normal CC: darren, giovanniceribella
Priority: NOR    
Version: 3.6.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 481601    
Attachments: Screenshot

Description mandras71 2023-02-09 15:15:48 UTC
Created attachment 156105 [details]
Screenshot

SUMMARY
***
STEPS TO REPRODUCE
1.  Set color scheme to "Star chart"

OBSERVED RESULT

The sky background stays black, although the color scheme specifies white.
Only a small portion of the screen gets colored to white, see screenshot.

EXPECTED RESULT

Previous versions of KStars showed the sky background white when the "Star chart" color scheme was applied.

SOFTWARE/OS VERSIONS

Ubuntu 22.04.1 LTS
GNOME 42.5
Wayland
plasmashell 5.24.7
Qt: 5.15.3
KDE Frameworks: 5.92.0


ADDITIONAL INFORMATION

The bug appears on raspberry pi as well ( astroberry image ):

Raspbian 10 (buster)
KStars 3.6.0
Comment 1 Giovanni Ceribella 2024-09-25 08:08:57 UTC
I confirm this is still in affecting Kstars 3.7.2 from Jasem's PPA repository (kstars-bleeding) on Ubuntu 24.04.

In fact it got worse, as the newly added color "Sky Daytime" seems to be shared among all color schemes (setting it for one color scheme sets the same value for all of them). I wasn't able to find a way to disable the "Sky Daytime" function, it triggers automatically if the sun is above the horizon for the current place and time. As a result, if one sets the "Sky Daytime" color to be, e.g. "#000000", to be able to see the stars even if the sun is above the horizon, and later switches to the "Star Chart" profile, both the stars and the sky will just be black, rendering the usage of the profile impossible.

Problems: "Sky Daytime" is set incorrectly for all color profiles; there doesn't seem to be a switch to disable the "Sky Daytime" function.
Possible solution (?): the usage of "Sky Daytime" should be controlled by the use, and should be different for every color profile;
Comment 2 Darren Carlson 2024-10-28 03:26:57 UTC
Further confirmed on Fedora 40 running kstars-3.6.6-4.
Per documentation here:  https://docs.kde.org/trunk5/en/kstars/kstars/colors.html
the "Star Chart" color scheme "uses black stars on a white background".
When this is attempted, the background remains black and the stars remain white - except in the region inside the Milky Way which is a very light grey.
Visiting "Settings / Configure KStars / Colors", the "Star Chart" scheme is using white for "Sky" and light grey for "Milky Way".
The Milky Way color will change in response to settings in this menu.
The Sky color will NOT change in response to settings in this menu.  It does seem to use this color to partially fill in the "local time" area in the upper-left corner of the display, under the toolbar, but the sky is always black except for the areas in the Milky Way region.