gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 24, 2021 20:54:40 GMT
It's very annoying when i want to change window size with touchpad or mouse. How can i increase theme border thikness?
|
|
|
Post by thewaiter on Oct 24, 2021 21:03:05 GMT
Not trivial You need to clone theme from my git, edit border.edc file, compile theme, copy to the right folder. github.com/thewaiter/MokshaRadianceIf you find it difficult, you need to wait for my input. Anyway, do not expect I will increase the border a lot. There should be a balance between functionality and elegance. Stefan
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 24, 2021 21:15:17 GMT
Not trivial You need to clone theme from my git, edit border.edc file, compile theme, copy to the right folder. github.com/thewaiter/MokshaRadianceIf you find it difficult, you need to wait for my input. Anyway, do not expect I will increase the border a lot. There should be a balance between functionality and elegance. Stefan wow. thx for quick respond. - can i edit this file on installed theme and do reboot? - which line in this section?
|
|
|
Post by thewaiter on Oct 25, 2021 6:19:12 GMT
Yes, you can edit your installed theme but again, it is not trivial. You need to copy theme from /usr/blabla/MokshaRadiance.edj to your working folder, decompile it with edje_decc command, edit file and build with ./build.sh command. Then copy theme edj to your personal folder home/.e/e/themes. No, it is not the right section. It is one of several border styles called pixel. It means the border width is just 1 px. You need to find out the default style (e/widgets/border/default/border). The problem is there are many macros. You need to understand the script. But I can encourage you to play with the script. It is a fun Stefan
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 25, 2021 10:07:28 GMT
Yes, you can edit your installed theme but again, it is not trivial. You need to copy theme from /usr/blabla/MokshaRadiance.edj to your working folder, decompile it with edje_decc command, edit file and build with ./build.sh command. Then copy theme edj to your personal folder home/.e/e/themes. No, it is not the right section. It is one of several border styles called pixel. It means the border width is just 1 px. You need to find out the default style (e/widgets/border/default/border). The problem is there are many macros. You need to understand the script. But I can encourage you to play with the script. It is a fun Stefan just to be sure, i have to change this
right?
|
|
|
Post by thewaiter on Oct 25, 2021 11:06:18 GMT
no, try to play with offset
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 25, 2021 11:51:44 GMT
no, try to play with offset i have "played" but no success: what should i change here? seems border thikcness hardcoded something in another place... (its ~2px)
|
|
|
Post by thewaiter on Oct 25, 2021 12:22:54 GMT
Mate, I am at work now. Hard to follow your work. I can look when I get home
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 25, 2021 13:12:12 GMT
Mate, I am at work now. Hard to follow your work. I can look when I get home ok thanks for respond
|
|
|
Post by thewaiter on Oct 25, 2021 16:25:23 GMT
OK The wider bottom border guide: at line 139 part { name: "border"; type: IMAGE; mouse_events: 0;
is defined the border thinkness this way: border: 10 10 27 3; Lets say we want to have it 5 px wider, so: border: 10 10 27 8; Now we need to decrease the client (the inner window content) in its bottom part for 5 pixels at line 205 part { name: "e.swallow.client"; type: SWALLOW; mouse_events: 1; change rel2.offset: -4 -4; to rel2.offset: -4 -9; Now we need to define the mouse event area. It is the invisible rectangle for mouse pointer which sends signal back to Moksha code. line 296 #define EVENT_RESIZE_ALL \ EVENT_RESIZE(t, 0 0, 0.0 0.0, -1 3, 1.0 0.0) \ EVENT_RESIZE(b, 0 -3, 0.0 1.0, -1 -1, 1.0 1.0) \ EVENT_RESIZE(l, 0 0, 0.0 0.0, 2 -1, 0.0 1.0) \ EVENT_RESIZE(r, -3 0, 1.0 0.0, -1 -1, 1.0 1.0) \ EVENT_RESIZE(tl, 0 0, 0.0 0.0, 9 9, 0.0 0.0) \ EVENT_RESIZE(tr, -9 0, 1.0 0.0, 0 9, 1.0 0.0) \ EVENT_RESIZE(bl, 0 -9, 0.0 1.0, 9 -1, 0.0 1.0) \ EVENT_RESIZE(br, -9 -9, 1.0 1.0, 0 0, 1.0 1.0) The bold line is related to the bottom (b) part of the border decorator. Again, we need to make this are wider so I change -3 to -8 (5 pxs up to the client area). This value is the y coordinate offset in pixels. I will explain later. The last part Unfortunately this is not all. Now you need to adjust the decorator frame image for new values. So, I opened border_max.png and made the bottom line wider again up to 5 pixels. i.imgur.com/ZUfsUcv.jpgNow we can build the theme and see the result. OK The most important info for everyone who wants to be involved in theme work. All theme parts are rectangles with events. Space for buttons are rects, decorators are rects etc. You can fill those rects with images or a solid color or made it tranparent. Rectangles has relative and absolute coordinates, where TOP LEFT corner i x=0.0, y=0.0 and RIGHT BOTTOM corner x=1.0 y=1.0. See the picture below rel1 0.0 1.0 0.0 ____________ | | | | | | | | ____________ rel2 0.0 1.0 1.0 1.0 The absolute coordinates are in pixels you can add or subtract from relative size rel1.offset: 5 -7; This means we will add 5 pixels to x and subtract 7 pixels from rel1 size. The result with bottom par resized. Of course you need to do the same for other sides if you need: For more info: www.enlightenment.org/develop/legacy/program_guide/edje/basic_conceptsdocs.enlightenment.org/stable/edje/edcref.html Stefan PS: In case you consider it difficult, clone my repo. I commited all Radiance theme changes. Enjoy
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 25, 2021 17:30:39 GMT
well very interesting... i've tried to change the bottom border thickness as you suggested and it really works. but now i want to change the same for border style: "pixel". Because i 'm not using default border style. any tips? (it has 1-2px size, and i need at least 5px.
|
|
|
Post by thewaiter on Oct 25, 2021 17:41:37 GMT
You need to play in group { name: "e/widgets/border/pixel/border";
Try to modificate e.swallow.client with rel2.offset. In part { name: "bottom"; type: RECT; you probably need to change 1 to 5 in max: 99999 1;
Stefan
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 28, 2021 11:18:23 GMT
You need to play in group { name: "e/widgets/border/pixel/border"; Try to modificate e.swallow.client with rel2.offset. In part { name: "bottom"; type: RECT; you probably need to change 1 to 5 in max: 99999 1; Stefan Dear, Stefan. Could you make commit for Pixel style of theme to allow 5px thinkness of all borders (top, bottom, left, right). Your help will be very appreciated
|
|
|
Post by thewaiter on Oct 28, 2021 12:57:59 GMT
Hmmm
I am hesitating about your demand. It is a very individual request. If I understand properly, you want to have a window with ability of moving and resizing but without title bar. Am I right? I hope you are aware of the fact you can move window only with holding ALT key or with keyboard.
Stefan
|
|
gothica
Crew Member
Posts: 122
Likes: 47
|
Post by gothica on Oct 28, 2021 13:36:29 GMT
Hmmm I am hesitating about your demand. It is a very individual request. If I understand properly, you want to have a window with ability of moving and resizing but without title bar. Am I right? I hope you are aware of the fact you can move window only with holding ALT key or with keyboard. Stefan yes, there is also book Bodhi Linux 5.1 The Complete Guide for Beginners By Roger Carter where an author describe about such a good opportunity that on small screens (12-13") its good to work without window borders... but in this case you can resize them only at top and bottom, and resize area (thickness) is very small... especially when you di this with touchpad.
|
|