Home » Community » U++ community news and announcements » 2023.1rc1
|
|
|
Re: 2023.1rc1 [message #59890 is a reply to message #59875] |
Sun, 21 May 2023 10:53   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
I found two issues
1) the first one is related to next/back stack for TheIDE build in help. It means that when you click on some entry for example "Assist++" you can not back to initial help menu. There are also problems with table of contents, it doesn't work in that view.
Also, when you open help for the first time after launching TheIDE it has back entry. It shouldn't be there and the stack should be empty.
Please test you, I believe you should find all mentioned issues pretty quickly.
2) The light breeze-gtk theme on Manjaro for menu bar is broken. It means that top menu bar works correctly, but nested are not. I attached screenshot to show this issue. Left is upp, right is LibreOffice that handles it correctly.

In above text the menu item text should be black not white. Also, the new/updated styling algorith should do not break topiteam text. This might requires bigger reworked.
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 21 May 2023 10:55] Report message to a moderator
|
|
|
|
Re: 2023.1rc1 [message #59892 is a reply to message #59891] |
Sun, 21 May 2023 11:32   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
I dumped these values as you suggested:
Begin
Before if
Diff(c, s.menutext) = 14
c = Color(241, 242, 243)
s.menutext = Color(255, 255, 255)
After if
Diff(c, s.menutext) = 243
c = Color(241, 242, 243)
s.menutext = Color(0, 0, 0)
End
Also, I increased if value even to 200, 250 without any effect. I think the issue here is more complicated that simple changing the shift value. There is a difference between menubar and single menus. The menubar is rendered correctly, but the menu is not. We might need to support this additional state.
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 21 May 2023 11:35] Report message to a moderator
|
|
|
|
|
|
Re: 2023.1rc1 [message #59896 is a reply to message #59894] |
Sun, 21 May 2023 14:45   |
 |
mirek
Messages: 14257 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Sun, 21 May 2023 13:53Hello Mirek,
The issue has been fixed for Breeze Light and Dark. Thank you for that! You also forget to remove debug code in production (line 513 - ChGtk4.cpp):
PNGEncoder().SaveFile("/home/cxl/item.png", item);
For other themes, I noticed that there is a issue for Adwaita (KDE Gtk Theme). The bar text should be white instead of black. I attached U++ (left) comparison with Chrom (right).

Klugier
Thanks, can you put some DDUMPs there?
DDUMP(c);
DDUMP(s.itemtext);
DDUMP(Diff(c, s.itemtext));
Alternatively, we can try to improve Diff:
int Diff(RGBA a, RGBA b)
{
return max(abs(a.a - b.a), max(abs(a.r - b.r) / 2, max(abs(a.b - b.b) / 5, abs(a.g - b.g))));
}
(This accounts for even maxed blue color being dark)
Mirek
|
|
|
Re: 2023.1rc1 [message #59897 is a reply to message #59896] |
Sun, 21 May 2023 18:58   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
Alternative diff method doesn't help in this case. For the log in ChGtk3.cpp file:
"Start" = Start
"Before if" = Before if
c = Color(241, 246, 253)
s.itemtext = Color(255, 255, 255)
Diff(c, s.itemtext) = 9
"After if" = After if
c = Color(241, 246, 253)
s.itemtext = Color(0, 0, 0)
Diff(c, s.itemtext) = 246
"End" = End
Klugier
U++ - one framework to rule them all.
|
|
|
Re: 2023.1rc1 [message #59898 is a reply to message #59897] |
Sun, 21 May 2023 20:07   |
 |
mirek
Messages: 14257 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Sun, 21 May 2023 18:58Hello Mirek,
Alternative diff method doesn't help in this case. For the log in ChGtk3.cpp file:
"Start" = Start
"Before if" = Before if
c = Color(241, 246, 253)
s.itemtext = Color(255, 255, 255)
Diff(c, s.itemtext) = 9
"After if" = After if
c = Color(241, 246, 253)
s.itemtext = Color(0, 0, 0)
Diff(c, s.itemtext) = 246
"End" = End
Klugier
I think I found it, can you recheck the master?
|
|
|
|
Re: 2023.1rc1 [message #59900 is a reply to message #59898] |
Sun, 21 May 2023 20:53   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Mirek,
After your last commit everything works as expected. I also tested other themes for regression, but they behave as expected. Thank you! Now, TheIDE help stabilization is waiting
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 21 May 2023 20:54] Report message to a moderator
|
|
|
Re: 2023.1rc1 [message #59901 is a reply to message #59871] |
Sun, 21 May 2023 21:17   |
Oblivion
Messages: 1206 Registered: August 2007
|
Senior Contributor |
|
|
Another test code for failing configurable key parser:
String s1 = "1;\n";
String s2 = "1;";
String s3 = "1";
uint32 i = CParser(s1).ReadNumber(16);
RLOG("1) Base 16: " << i);
uint32 j = CParser(s1).ReadNumber(10);
RLOG("1) Base 10: " << j);
RLOG("-----");
uint32 k = CParser(s2).ReadNumber(16);
RLOG("2) Base 16: " << k);
uint32 l = CParser(s2).ReadNumber(10);
RLOG("2) Base 10: " << l);
RLOG("-----");
uint32 m = CParser(s3).ReadNumber(16);
RLOG("3) Base 16: " << m);
uint32 n = CParser(s3).ReadNumber(10);
RLOG("3) Base 10: " << n);
Results:
1) Base 16: 20
1) Base 10: 1
-----
2) Base 16: 20
2) Base 10: 1
-----
3) Base 16: 1
3) Base 10: 1
Seems that CParser.GetNumber(16) is not reading the number correctly.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sun, 21 May 2023 21:23] Report message to a moderator
|
|
|
|
|
Re: 2023.1rc1 [message #59904 is a reply to message #59903] |
Mon, 22 May 2023 14:32   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
mirek wrote on Mon, 22 May 2023 09:42Klugier wrote on Sun, 21 May 2023 20:53Hello Mirek,
After your last commit everything works as expected. I also tested other themes for regression, but they behave as expected. Thank you! Now, TheIDE help stabilization is waiting
Klugier
I have commited the fix yesterday, perhaps you missed it, or is is still in need of "stabilisation"?
Hello Mirek,
Everything works fine. I wrote my message after using your last commit from yesterday. We can assume for now that GTK menubar styling works as expected.
Klugier
U++ - one framework to rule them all.
|
|
|
Re: 2023.1rc1 [message #59905 is a reply to message #59904] |
Mon, 22 May 2023 15:20   |
 |
mirek
Messages: 14257 Registered: November 2005
|
Ultimate Member |
|
|
Klugier wrote on Mon, 22 May 2023 14:32mirek wrote on Mon, 22 May 2023 09:42Klugier wrote on Sun, 21 May 2023 20:53Hello Mirek,
After your last commit everything works as expected. I also tested other themes for regression, but they behave as expected. Thank you! Now, TheIDE help stabilization is waiting
Klugier
I have commited the fix yesterday, perhaps you missed it, or is is still in need of "stabilisation"?
Hello Mirek,
Everything works fine. I wrote my message after using your last commit from yesterday. We can assume for now that GTK menubar styling works as expected.
Klugier
That is one confusing reply... 
(The question was about help fw/bk)
Mirek
|
|
|
|
Goto Forum:
Current Time: Fri May 09 15:53:29 CEST 2025
Total time taken to generate the page: 0.03050 seconds
|