How to add icons in the toolbar

QT style sheets and icon themes for SMPlayer.

How to add icons in the toolbar

Postby cod83 » Wed Mar 20, 2013 2:09 pm

How to add icons half speed, double speed, zoom +, zoom-,?
I tried inc_zoom, dec_zoom etc.Nothing has changed, please help.
(I made icons for these commands and put them in the skin folder)
cod83
 
Posts: 5
Joined: Wed Feb 06, 2013 12:43 am

Re: How to add icons in the toolbar

Postby MacTheKnife » Wed Mar 20, 2013 10:09 pm

In the [default_gui] section of the smplayer.ini file add the buttons you want to the "actions\toolbar1=" line.

For zooming, I just remapped the zoom function to the mouse wheel, so if I position the pointer over the video, the scroll wheel zooms in and out. And if I position the pointer over the volume control then the scroll wheel adjust the volume. So I don't know what the tag names are for the zoom control.

For half speed and double speed, the correct names are halve_speed and double_speed (note the underline).

For example, I've changed my toolbar to the following:

actions\toolbar1=show_file_properties, show_playlist, show_preferences, separator, screenshot, separator, deinterlace_menu, separator, dec_speed, inc_speed, halve_speed, double_speed, separator, move_up, move_down, move_left, move_right

Going by the inc_speed and dec_speed, my guess is that the zoom tags are inc_zoom and dec_zoom.

The example above uses the icons from the default theme. if you want to use your own icons, I think you have to create a complete theme and switch to using that theme.
MacTheKnife
 
Posts: 27
Joined: Thu Jan 14, 2010 8:58 pm

Re: How to add icons in the toolbar

Postby rvm » Wed Mar 20, 2013 11:00 pm

cod83 wrote:How to add icons half speed, double speed, zoom +, zoom-,?
I tried inc_zoom, dec_zoom etc.Nothing has changed, please help.
(I made icons for these commands and put them in the skin folder)


Those actions don't have icons yet.
rvm
Site Admin
 
Posts: 2804
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to add icons in the toolbar

Postby bald42 » Wed Nov 16, 2016 3:38 pm

Is it possible to add icons to actions currently with no icons via a custom theme?
bald42
 
Posts: 2
Joined: Wed Nov 16, 2016 2:17 pm

Re: How to add icons in the toolbar

Postby rvm » Wed Nov 16, 2016 10:51 pm

Some actions with no icons actually try to load an icon, so if you provide those icons, yes.
rvm
Site Admin
 
Posts: 2804
Joined: Wed Dec 23, 2009 1:25 am
Location: España


Return to Artwork and Themes

Who is online

Users browsing this forum: No registered users and 1 guest

cron