lxqt / lxqt-config

Tools to configure LXQt and the underlying operating system
https://lxqt.github.io
GNU Lesser General Public License v2.1
81 stars 62 forks source link

lxqt-config-locale - "No change" item bug #824

Closed ghost closed 2 years ago

ghost commented 2 years ago

Some things I have noticed from using lxqt-config-locale:

There is an animation for list item clear icons... why? I believe from launching the program again and again, that the animation is causing performance issues.

Also "No change" appears to be broken, when selecting Detailed Settings. Under the Examples section I get: (for United States - American English (en_US)): 1,000.1; Sunday, March 13, 2022 12:34:42 AM EST; $24; Imperial US (for Detailed Settings checked and all boxes set to No Change): 1000.1; Sunday, 13 March 2022 00:36:36 EST; 24; Metric

System Information
stefonarch commented 2 years ago

I'm quite sure there is none, never saw this. Could be a compositor effect on your installation? And for the second one: those are the actual settings shown and those would be taken on save - there is no issue too.

schermata-03-13-08-01

tsujan commented 2 years ago

There is an animation for list item clear icons... why?

You're asking about what happens inside Qt. The answer is in Qt's code. We don't add any animation; Qt does.

ghost commented 2 years ago

I see the bug is much more narrow than I initially wrote. No Change changes from set locale.

ghost commented 2 years ago

Because my words seem to be failing me, here's a screenshot screenshot1

Expected behavior

'No change' correctly copies the locale style from selected Region. .

stefonarch commented 2 years ago

Thanks, I never saw this "no change", how did you produce it?

ghost commented 2 years ago

I believe No change is the default for unsaved LXQt locale settings under Detailed Settings

stefonarch commented 2 years ago

No, I tried different edits and cannot produce this. Can you describe step by step how you get this screen?

ghost commented 2 years ago

To reproduce and test the bug, select the first item in the list for items under Detailed Settings, it is 'No change' for me.

stefonarch commented 2 years ago

Still cannot reproduce - I find no way to see this "no change" here, but I see it in the source code and the translations.

tsujan commented 2 years ago

I see them. Had never paid attention to them because I only use US En.

Reopening...

ghost commented 2 years ago

Also regarding lxqt-config-locale, the padding of the window around all its elements is larger than the rest of lxqt-config binaries. Container boxes would be nice.

tsujan commented 2 years ago

Also regarding lxqt-config-locale, the padding of the window around all its elements is larger than the rest of lxqt-config binaries

Such things neither are bugs nor cause problems. They can be changed very easily but, I guess, devs respect the harmless choices of the original author of the app and don't touch them.

ghost commented 2 years ago

Yes, I was unsure if it was a feature or a bug - perhaps neither, as you said, a harmless design choice by the original authors. I still think a container box would be an improvement around Detailed Settings and Examples. I don't know how hard this is to implement these things in Qt.

tsujan commented 2 years ago

I still think a container box....

It isn't about a box. The original author has added two 16-px horizontal spacers. Why? I don't know. I'll remove them later — if I don't forget them ;)

tsujan commented 2 years ago

... a container box would be an improvement around Detailed Settings and Examples. I don't know how hard this is to implement these things in Qt.

It's a piece of cake. I thought you meant the padding (→ my previous comment).

tsujan commented 2 years ago

I found time to check the GUI as well as the code. There's no bug here; the GUI is OK:

  1. If you don't check "Detailed Settings", the info of the "Region" combo will be used for Number, Time, etc.
  2. If you check that box, the info in the enabled combos will be used. The default is "No change", which means the value of the related environment variable (LC_NUMERIC, LC_TIME, etc.). If that environment variable is empty, the "C" locale will be used, which is the logical choice (made by Qt devs).

The "Detailed Settings" box is for users who want to fine-tune their locale. Most users may only need to leave it unchecked, so that the "Region" combo is used for all details.