Page 1 of 2

pronounce icon

PostPosted: Tue Jan 22, 2013 11:46 am
by mmmmmm
Can you update pronounce icon? , I don't like it.

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 12:03 pm
by Tvangeste
mmmmmm wrote:Can you update pronounce icon? , I don't like it.

Nobody likes it, it seems :)

Well, at least for the sound icons inside the articles there are some CSS tricks to replace them.

Here's what I have in my article-style.css file to provide a custom sound icon:

Code: Select all
.dsl_s_wav img, .lsa_play img {
    display: none;
}

.dsl_s_wav a, .lsa_play td:nth-of-type(1) a {
    display: inline-block;
    width: 17px;
    height: 16px;
    background: url('file:///control_play_lingvo.png') no-repeat center;
    vertical-align: text-bottom;
}


And it looks like this (I borrowed the icon from Lingvo):
Image

But I agree that the original icon is ugly and looks dated (from 1990-s :) ).

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 12:08 pm
by Tvangeste
Just in case, I've filed a bug for this:
https://github.com/goldendict/goldendict/issues/182

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 12:51 pm
by mmmmmm
Thank you,
but nothing change after I used this .css code
is there .png or what ?

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 1:03 pm
by Tvangeste
Yes, you need to supply your own png file with the specified name and put it at the same folder where your CSS file is.

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 2:14 pm
by mmmmmm
I can't edit my .css brother


here is free icons

http://findicons.com/icon/238013/kblogger?id=393483


You can search there

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 3:38 pm
by Tvangeste
mmmmmm wrote:I can't edit my .css brother

If there is no article-style.css file in your configuration folder, you'd have to create it. The configuration folder location can be obtained via Menu->Help->Configuration Folder.

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 4:11 pm
by mmmmmm
It is clear and simple but my file name was article-style.css.css
this is the wrong .

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 5:56 pm
by eneji

Re: pronounce icon

PostPosted: Tue Jan 22, 2013 6:21 pm
by pesgd
that is a neat icon!

I suppose I still need to work out the right resolution, here´s how it will (won´t) show up on my GD:
Image

yayyy, now it works!
Image

i´m using the 16x16 icon, thank you mmmmm, eneji and tvangeste :)