Author Topic: Add buttons  (Read 4164 times)

watchman

  • Guest
Add buttons
« on: April 15, 2013, 14:09:44 »
Good afternoon everybody,

Is there an option to add a few buttons in my layout.
I use Make it look like Exaile.
I want a button to make fullscreen with albumart.
And to scan and check or control the library.

Thanks again :)

Mario


ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Add buttons
« Reply #1 on: April 15, 2013, 15:00:19 »
I suggest you take a look at the code of the "Shimmer Desktop" layout, as it contains both those buttons.

watchman

  • Guest
Re: Add buttons
« Reply #2 on: April 15, 2013, 16:27:16 »
Thanks ochosi for your help.
Only i don't understand how that works with the code. What the code is, how to put it and where.
Maybe you can help me a little more.

Thanks  :)

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Add buttons
« Reply #3 on: April 15, 2013, 17:04:32 »
Don't have much time now, but have you taken a look at the layout docs?
http://gmusicbrowser.org/layout_doc.html

watchman

  • Guest
Re: Add buttons
« Reply #4 on: April 16, 2013, 03:42:31 »
I already found out a few things to change.
Only the 2 orignal buttons are nice and sharp. These are the buttons : sort and resetfilter.
The 3 i added are working but not sharp.
Can somebody help me with that?
HBToolbar =   Sort(button=1,relief=none,minwidth=28) \
                    ResetFilter(button=1,relief=none,minwidth=28) \
                    Fullscreen(button=1,relief=none,minwidth=28) \
                    Button1(click1="RunPerlCode(::IdleScan)",stock=gtk-zoom-in,tip=_"scan now"), \
                    Button2(click1="RunPerlCode(::IdleCheck)",stock=gtk-refresh,tip=_"check now")

So button Fullscreen, scan now and check now are not nice.

Thanks  ;)
« Last Edit: April 16, 2013, 19:10:55 by watchman »

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Add buttons
« Reply #5 on: April 17, 2013, 01:31:21 »
The current icon system in gmb is not very good, in particular it can't use multiple file for multiple sizes, only one file for all sizes.
Though I don't really see any differences in your screenshot, the icons come from the gtk theme or gmb theme, you can replace them by putting files in ~/.config/gmusicbrowser/icons/
The file names should be gtk-fullscreen.png gtk-zoom-in.png and gtk-refresh.png

watchman

  • Guest
Re: Add buttons
« Reply #6 on: April 17, 2013, 06:44:12 »
Thanks....i get it  :)
This is what i made.
« Last Edit: April 19, 2013, 15:56:31 by watchman »