You are not logged in.

#1 2008-03-17 16:51:11

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

[SOLVED]Help from E17 guru please

Hi all,

Just a small annoying problem and as usual with E17 not much documentation around.  Anyone know how I can fix the size of my menu icons.  Somehow, and I don't know when it happened, all the icons in my sound & video section are smaller--they're teensy weensy--compared to all the others.  I checked the icons used and they're all 48x48 types.  I'm flumoxed...

Last edited by bgc1954 (2008-03-18 13:32:36)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#2 2008-03-18 10:50:04

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED]Help from E17 guru please

Let me try to help you...

Are there any of those menu items defined in ~/.e/e/applications/menu ?
What theme are you using ?

If you extract the .edj file (using edje_decc $name.edj) there should be a file named similar to menu.edc
Open this file with your text editor. Does it define min and max values for the icon size in the menu in a similar way as

group {
   name: "e/widgets/menu/default/icon";

   parts {

      part {
         name: "e.swallow.content";
         type: SWALLOW;

         description {
            state: "default" 0.0;
            min: 16 16;
            max: 16 16;
            aspect: 1.0 1.0;
         }
      }
   }
}

Offline

#3 2008-03-18 12:49:30

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED]Help from E17 guru please

Hi pressh,

I thought you might be the only one to reply or maybe skottish.  Anyway, I found another problem when I tried to edje_decc.  The edjce-cvs-20080303-1 package segfaulted when I tried to run it.  I thought this strange as the theme I am using was customized by me a little while ago and just posted on e17-stuff.org (GreyTheme_LgFont).  I use it on three computers an x86 laptop, an x86 desktop and a x86_64 desktop.  The only one giving me grief is the x86_64 computer.

So to make a long story short, I thought perhaps the same thing happened as I posted with the e-cvs-20080303 battery module not working so I downgraded to edje-cvs-20080218 and was able to edje_decc my custom theme--looks like 2008303-1, in general, might have a few issues.

All I customized was a background, font size and put numbers on the clock face so I didn't think this would cause the problem although the original theme said it didn't work in current cvs--its always worked fine for me before.

Here's that section of the theme anyway:

group {
   name: "e/widgets/menu/default/icon";
   parts {
      part {
     name:          "e.swallow.content";
     type:          SWALLOW;
     description {
        state:    "default" 0.0;
        rel1 {
           relative: 0.0  0.0;
           offset:   2    2;
        }
        rel2 {
           relative: 1.0  1.0;
           offset:   -3    -3;
        }
     }
      }

I can live with the little icons as everything else seems fine but I did notice that changing to a clearlooks theme on the x86_64 fixed the icon difference so it might be the theme...but why does it work fine on the x86's????  Aren't computers fun!!!

Last edited by bgc1954 (2008-03-18 12:56:52)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#4 2008-03-18 13:12:30

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED]Help from E17 guru please

You're a genius pressh! big_smile

I just monkeyed around with the menu part of the .edj file and your post gave me an idea.  As you can see, the themes icon section had no min,max so I added:

group {
   name: "e/widgets/menu/default/icon";
   parts {
      part {
     name:          "e.swallow.content";
     type:          SWALLOW;
     description {
        state:    "default" 0.0;
        min:      16 16;
        max:      16 16;
            rel1 {
           relative: 0.0  0.0;
           offset:   2    2;
        }
        rel2 {
           relative: 1.0  1.0;
           offset:   -3    -3;
        }
     }
      }
   }
}

I did a build.sh and tried out the rebuilt theme and now the icons are fine.  Thanks for turning the light bulb on in my head!  I'm going to reupload the fixed theme to my host so this doesn't bother anyone else who might try the theme.  Thanks again! big_smile


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2008-03-18 13:22:11

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED]Help from E17 guru please

bgc1954 wrote:

So to make a long story short, I thought perhaps the same thing happened as I posted with the e-cvs-20080303 battery module not working so I downgraded to edje-cvs-20080218 and was able to edje_decc my custom theme--looks like 2008303-1, in general, might have a few issues.

Version 20080317-1 works for me. Can you try it with that version, it should be on your mirror by now I think.

bgc1954 wrote:

All I customized was a background, font size and put numbers on the clock face so I didn't think this would cause the problem although the original theme said it didn't work in current cvs--its always worked fine for me before.

Normally all icons should be the same size regardless if you force the size or not. Nevertheless it is always a good idea to force the icons to a particular size so you have the exact size you want. Also issues like yours can't happen that way I think.

[edit]
removed the rest of the message as you figured it out already cool

Last edited by pressh (2008-03-18 13:23:46)

Offline

#6 2008-03-18 14:00:07

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED]Help from E17 guru please

Pressh,

Upgraded e pkg's and edje_decc works fine.  Just another note though, the battery module works but now there is a large space between the battery icon and the font showing the status of the battery.  When I switch back to 20080220 there's no space between the icon and fonts.  Weird...I wonder if it could have anything to do with the theme or just the new version of e-cvs??


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#7 2008-03-18 14:30:02

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED]Help from E17 guru please

bgc1954 wrote:

Weird...I wonder if it could have anything to do with the theme or just the new version of e-cvs??

Or maybe a combination of those big_smile

Anyways it is quite easy to adjust it in your theme. Open the battery.edc file and look for 'align' functions:

align: x y;

where x and y are percentages, so ranging from 0 to 1.

To move the battery closer to the font, edit the particular function to read something like

   parts {
      part {
         name: "battery";
         clip_to: "pulse_clip";
         description {
            state: "default" 0.0;
            aspect: 0.669291339 0.669291339;
            aspect_preference: BOTH;
            align: 0.2 0.5;
            max: 85 127;

Similar for moving the text closer to the battery. You can also increase the size of the text if you like, look for functions called 'size:'

Offline

#8 2008-03-18 15:38:06

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED]Help from E17 guru please

Nope, i tried several permutations and combinations but the font is way to the right of the battery icon.  My theory is its an e-cvs-20080317 problem so it's back to 20080220, for now.  But thanks for the lessons in edje.

Last edited by bgc1954 (2008-03-18 15:40:07)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#9 2008-03-18 15:41:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED]Help from E17 guru please

bgc1954 wrote:

Nope, i tried several permutations and combinations but the font is way to the right of the battery icon.

It's been like that for me for weeks also, including my own personal builds.

By the way, pressh is the guru here, I just have a lot of time to answer questions at the moment!

Last edited by skottish (2008-03-18 15:42:53)

Offline

#10 2008-03-18 15:58:52

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: [SOLVED]Help from E17 guru please

skottish wrote:
bgc1954 wrote:

Nope, i tried several permutations and combinations but the font is way to the right of the battery icon.

It's been like that for me for weeks also, including my own personal builds.

I think I don't have that problem in my own custom (unfinished) theme. The battery module is just a modification (font size, align and removed time) as I explained above from the default theme.
200803181651501024x768stc7.th.png

Do you want to have it something like that ?

Offline

#11 2008-03-18 16:02:55

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED]Help from E17 guru please

skottish wrote:
By the way, pressh is the guru here, I just have a lot of time to answer questions at the moment!

Yeah, I know what you mean.  I've been much more active on the forums recently as I seem to have more time to kill as well.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

Board footer

Powered by FluxBB