NsCDE / NsCDE

Modern and functional CDE desktop based on FVWM
Other
1.92k stars 56 forks source link

Style Manager colors not shown #75

Closed edunfelt closed 2 years ago

edunfelt commented 2 years ago

Hi,

For some reason the colors on the workspace buttons does no longer work, in the Style Manager the last four colors (of all palettes, both custom and original) are shown to be green, although the actual palette-file has the actual colors. The backdrop manager also displays a gray color instead of the expected one. I have reinstalled NsCDE several times, to no avail.

System: Arch Linux

stylemgr

Palette:

#d5d57e7e8585
#a5a59d9dafaf
#bbbb9999b4b4
#fbfbf1f1f2f2
#bfbfb9b9c6c6
#72729797b9b9
#6969a9a9a7a7
#a3a3b3b36767

Thank you!

// Emilia

NsCDE commented 2 years ago

Hi Emilia,

Huh! This really looks strange.

What version of the NsCDE? (1.3 was released yesterday)

I'm almost 100% convinced ~/.NsCDE/NsCDE-Colorset.conf is corrupted.

In Color Style Manager, select your favourite palette and (re)apply it. This will regenerate theme and colorsets file. If this doesn't help, see "Watch Errors" from 7th subpanel, or find X session log, to see actual errors, but I think regeneration of the color scheme will fix this.

edunfelt commented 2 years ago

Hello,

Indeed quite strange, I've used NsCDE for a while now and it's been surprisingly stable so far - props to you for that!

I should be running 1.3 now, but the problem cropped up a couple of days ago while I was still on 1.2. Re-applying the palette doesn't seem to fix the problem, and there are no errors in the logs at all.

Here's what the ~/.NsCDE/NsCDE-Colorset.conf looks like:

##############################################
# NsCDE - Not so Common Desktop Environment
# Theme: Cupcake, Colors: 0
##############################################

#
# This file is a part of the NsCDE - Not so Common Desktop Environment
# Author: Hegel3DReloaded
# Licence: GPLv3
#

UnsetEnv NSCDE_PALETTE
SetEnv NSCDE_PALETTE Cupcake

UnsetEnv NSCDE_PALETTE_NCOLORS
SetEnv NSCDE_PALETTE_NCOLORS 0

InfoStoreAdd fp_8color_variant 5
InfoStoreAdd wsmcolored 0

# Bare default (should not be seen at all)
Colorset 0 fg #ffffffffffff, bg #8b1798be57e4

# Inactive windows and default widget fg/bg/sh/hi, regular menu, window borders
Colorset 1 fg #ffffffffffff, bg #a5a59d9dafaf, hi #d8a6d527dd06, sh #57a453645cf3, fgsh #8ccc85f89554, Plain, NoShape

# Active, focused windows, titlebar of WspLocPager, active window borders
Colorset 2 fg #ffffffffffff, bg #d5d57e7e8585, hi #ed7fc72dca42, sh #6fbb421845c4, fgsh #b5c16b84717d, Plain, NoShape

# Hilight menu (main menu selected), Subpanels of front panel selected, mousover baloons
Colorset 4 fg #ffffffffffff, bg #8ccc85f89554, hi #d8a6d527dd06, sh #57a453645cf3, fgsh #57a453645cf3, Plain, NoShape

# Grayed / disabled menu
Colorset 5 fg grey40, bg #a5a59d9dafaf

# Menu prelight for colorset 22 (Page Manager)
Colorset 6 fg #ffffffffffff, bg #614780d99ddd, hi #c175d1dee0f3, sh #3b194e475fe8, fgsh #3b194e475fe8, Plain, NoShape

############################
# NsCDE additional Colorsets
############################

# For FvwmScript: TextField and List widgets
Colorset 20 fg #000000000000, bg #fbfbf1f1f2f2, hi #c995c18dc25b, sh #9730912a91c4, fgsh #d62ecda6ce80, Plain, NoShape

# 2nd windows color when Colors == 8
Colorset 21 fg #ffffffffffff, bg #bfbfb9b9c6c6, hi #e4ace21ce7a9, sh #695b660b6d37, fgsh #a2fb9ddda8f5, Plain, NoShape

# 2nd Color for transient windows when Colors == 8
Colorset 22 fg #ffffffffffff, bg #72729797b9b9, hi #c175d1dee0f3, sh #3b194e475fe8, fgsh #3b194e475fe8, Plain, NoShape

# Front Panel variant of 21 - can be 5 or 8 variant - 5
Colorset 23 fg #ffffffffffff, bg #bfbfb9b9c6c6, hi #e4ace21ce7a9, sh #695b660b6d37, fgsh #a2fb9ddda8f5, Plain, NoShape

# Light gaps on the Front Panel menu and iconify buttons (topShadowColor from cs #1)
Colorset 14 fg #d8a6d527dd06, bg #d8a6d527dd06, hi #d8a6d527dd06, sh #d8a6d527dd06, fgsh #d8a6d527dd06, Plain, NoShape

# Dark gaps on the Front Panel menu and iconify buttons (bottomShadowColor from cs #1)
Colorset 15 fg #57a453645cf3, bg #57a453645cf3, hi #57a453645cf3, sh #57a453645cf3, fgsh #57a453645cf3, Plain, NoShape

# Last Pressed Subpanel Launcher Button on the Front Panel
# It is unknown why there must be a fg color here but
# letters of the selected entry are green if this is not
# the case.
Colorset 16 Pixmap NsCDE/LastPressedXL.xpm, fg #ffffffffffff, fgsh #330033003300

# Press inficator on subpanel launchers of the Front Panel
Colorset 17 Pixmap NsCDE/LastPressedFPSubLnch.xpm, hi #d8a6d527dd06, sh #57a453645cf3, fgsh #8ccc85f89554

# Icon background pixmap inactive
Colorset 18 Pixmap NsCDE/IconBgI.xpm

# Icon background pixmap active
Colorset 19 Pixmap NsCDE/IconBgA.xpm

# Icon background pixmap inactive (Large)
Colorset 54 Pixmap NsCDE/IconBgLI.xpm

# Icon background pixmap active (Large)
Colorset 55 Pixmap NsCDE/IconBgLA.xpm

# Icon background pixmap inactive (Extra Large)
Colorset 56 Pixmap NsCDE/IconBgXLI.xpm

# Icon background pixmap active (Extra Large)
Colorset 57 Pixmap NsCDE/IconBgXLA.xpm

# FrontPanel Press Indicator Large
Colorset 24 Pixmap NsCDE/SelectedL.xpm

# FrontPanel Press Indicator Small
Colorset 25 Pixmap NsCDE/SelectedS.xpm

# FrontPanel Menus Press Indicator
Colorset 26 Pixmap NsCDE/SelectedXL.xpm

# FrontPanel Subpanel Launcher Press Indicator
Colorset 27 Pixmap NsCDE/PressedFPL.xpm, hi #d8a6d527dd06, sh #57a453645cf3, fgsh #8ccc85f89554

# Pressed Button on Colorset 21 (Style Manager)
Colorset 28 fg #000000000000, bg #a2fb9ddda8f5, hi #695b660b6d37, sh #e4ace21ce7a9, fgsh #a2fb9ddda8f5, Plain, NoShape

# Last Pressed Button on Front Panel
Colorset 29 Pixmap NsCDE/LastPressedFPB.xpm

# Last Pressed Small Button on Front Panel
Colorset 30 Pixmap NsCDE/LastPressedFPS.xpm

# Exception from Colorset 1: Panel SubMenus Font Shadow darker (fgsh == sel_color_3) when FP variant is 5
Colorset 49 fg #ffffffffffff, bg #bfbfb9b9c6c6, hi #e4ace21ce7a9, sh #695b660b6d37, fgsh #330033003300, Plain, NoShape

# Transparent handler (WSM, MonthDayApplet, CheckMailApplet ...)
Colorset 52 fg #ffffffffffff, Transparent

# For ItemDraw Widget of FvwmScript (used in WSM)
Colorset 53 fg #000000000000, bg #000000000000, hi #000000000000, sh #000000000000

# Colorset for test indicators
Colorset 50 fg red, bg green, hi blue, sh yellow

I might be wrong, but isn't some stuff missing here for setting the Workspace Manager colors? This seems to be the same whenever I apply a new theme.

NsCDE commented 2 years ago

Hi @edunfelt

Do you see that "Colors: 0" at the 3rd line of the file (and later)? This value can be only 4 or 8. The rest of the generated file looks ok syntactically. So it is this "ncolors" moment which is causing you the trouble.

When you are logged in, from the terminal please try to determine this:

env | grep NSCDE_PALETTE_NCOLORS

It should be 8 or 4, nothing else. Specially not 0. I was able to get this behaviour by intentionally putting 0 as a value in colorset config, as you have it. When you recreated the theme, half of the colors were wrong, and Color Style Manager recreated this with "0". To get out of this enchanted cycle, edit your present ~/.NsCDE/NsCDE-Colorset.conf and replace

SetEnv NSCDE_PALETTE_NCOLORS 0

with

SetEnv NSCDE_PALETTE_NCOLORS 8

Then inject this into FVWM's runtime environment:

FvwmCommand 'SetEnv NSCDE_PALETTE_NCOLORS 8'

Finally, run Color Style Manager. You should now see all color examples to be normal. Apply wished theme, and that should do it.

BTW, If this happens again, grep all your \~/.NsCDE, and your shell profile files (~/.profile ~/.bashrc ~/.bash_profile ...) for this variable. Maybe it was put someware by mistake with erroneous value "0". This should not be put manually in environment, but only from ~/.NsCDE/NsCDE-Colorset.conf.

edunfelt commented 2 years ago

Hi again,

Thank you so much, of course it works now!

No idea how it was set to 0, but the problem started after a reboot where had been tweaking a custom theme, so probably something happened during that time.

Again, thank you for an awesome project :)

2021-10-10-084309_1920x1080_scrot

NsCDE commented 2 years ago

Hi,

I'm glad problem is solved. Maybe I should put some check into backdrop and color style managers for this value, to prevent them to reproduce the problem. Very nice setup BTW.

Closing the issue.