Dark theme: Black on Black - the text isn't visible

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Dark theme: Black on Black - the text isn't visible

Post by m.Th. »

Steps:

1. Apply the Dark theme.
2. Write a text to search in Quick Search box here: (in the red oval)
XnView Quick Search.jpg
XnView Quick Search.jpg (12.07 KiB) Viewed 1419 times
Expected: The text should be white (visible)
Actual: The text is black on the near black background of the theme. You can see it if you magnify the image and change Gamma to some extreme values (eg. 4.3).
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by xnview »

in your theme, edit

SearchLineEdit {
background-color: transparent;
border: 1px solid black;
padding: 0px;
color: white;
}

i'll change it
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by m.Th. »

Hi Pierre,

Ping............

Not fixed in 0.94b1
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by xnview »

yes will be changed for final release
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by m.Th. »

Still present in 0.94b2
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by xnview »

m.Th. wrote: Mon Sep 30, 2019 8:12 am Still present in 0.94b2
in .css, do you have that

Code: Select all

SearchLineEdit {
background-color: transparent;
border: 1px solid black;
padding: 0px;
color: white;
}
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Dark theme: Black on Black - the text isn't visible

Post by m.Th. »

xnview wrote: Mon Sep 30, 2019 9:52 am
m.Th. wrote: Mon Sep 30, 2019 8:12 am Still present in 0.94b2
in .css, do you have that

Code: Select all

SearchLineEdit {
background-color: transparent;
border: 1px solid black;
padding: 0px;
color: white;
}
Ok, I debugged and I think that I found it:

If I go in UI subfolder and I open the style_sheet.qss, then it is as you describe it.

But if I go to View \ Theme \ Dark Theme - in the editor which appears, in the style_sheet.qss tab appears just:

Code: Select all

SearchLineEdit{
	background-color: transparent;
	border: 1px solid black;
	padding: 0px; 
}

SearchLineEdit>QLineEdit{
	background-color: rgb(160, 160, 160); 
}
The color:white is missing.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Post Reply