Posted: Fri 02 Jun 2017, 14:18
Audacious mediaplayer (ver-3.8.2) and Gtk2.
Some notes on Gtk2 skins and icons.
Gtk2 look can be changed runtime, both the ordinary and the "skin" look.
Skinned window is just GtkFixed, I think..
Here's a full "default settings and locations" skin.hints list.
Locations are set for upper-left corner of skin detail.
------------------------------------------
------------------------------------------
pledit.txt parsing ( default playlist colors )
------------------
------------------------------------------
viscolor.txt parsing ( default visualisation colors )
------------------------------------------
region.txt parsing (skinned windows in shaped window mode)
------------------
I don't think there is a "default" setting for it, while it may be to some interest..
A bit of a trial-and-error suggestion here, so please take it with a grain of salt
The window can be also shaped for top area only, as shown for example 2 below.
window names are:
[Normal] is skinned mainwindow in "normal" state
[windowshade] is skinned mainwindow in "shaded (14 pixel stripe-look)" state
[equalizer] is skinned equalizerwindow in "normal" state
[equalizerws] is skinned equalizerwindow in "shaded (14 pixel stripe-look)" state
------------------
------------------
------------------
------------------------------------------
Some notes on Gtk2 skins and icons.
Gtk2 look can be changed runtime, both the ordinary and the "skin" look.
Skinned window is just GtkFixed, I think..
Here's a full "default settings and locations" skin.hints list.
Locations are set for upper-left corner of skin detail.
------------------------------------------
Code: Select all
# Hints for skin detail locations.
[skin]
# player window size in pixels.
mainwinWidth = 275
mainwinHeight = 116
# true=1 and false=0
mainwinMenurowVisible = 1
mainwinStreaminfoVisible = 1
mainwinOthertextIsStatus = 0
# does not support locale specific glyphs, use TTF fonts instead.. from settings.
# size in pixels
textboxBitmapFontWidth = 5
textboxBitmapFontHeight = 6
# scrolled filename text
mainwinTextX = 112
mainwinTextY = 27
# width in pixels
mainwinTextWidth = 153
# is visible? true=1 and false=0
mainwinTextVisible = 1
# visualisation graphics in main window
mainwinVisX = 24
mainwinVisY = 43
mainwinVisVisible = 1
# info about KHz, Kb-PS and stereo/mono details
mainwinInfobarX = 112
mainwinInfobarY = 43
mainwinOthertextVisible = 0
# location of min/sec counter numbers ( ..also minus and empty )
mainwinNumber0X = 36
mainwinNumber0Y = 26
mainwinNumber1X = 48
mainwinNumber1Y = 26
mainwinNumber2X = 60
mainwinNumber2Y = 26
mainwinNumber3X = 78
mainwinNumber3Y = 26
mainwinNumber4X = 90
mainwinNumber4Y = 26
# play/pause/stop interactive indicator icon
mainwinPlaystatusX = 24
mainwinPlaystatusY = 28
# volume slider
mainwinVolumeX = 107
mainwinVolumeY = 57
# balance slider
mainwinBalanceX = 177
mainwinBalanceY = 57
# position(progress) slider/indicator
mainwinPositionX = 16
mainwinPositionY = 72
# "Previous" button
mainwinPreviousX = 16
mainwinPreviousY = 88
# "Play" button
mainwinPlayX = 39
mainwinPlay_y = 88
# "Pause" button
mainwinPauseX = 62
mainwinPause_y = 88
# "Stop" button
mainwinStopX = 85
mainwinStop_y = 88
# "Next" button
mainwinNextX = 108
mainwinNext_y = 88
# "Eject" button
mainwinEjectX = 136
mainwinEject_y = 89
# "Equalizer Window Open/Close" button
mainwinEqbuttonX = 219
mainwinEqbuttonY = 58
# "PlayList Window Open/Close" button
mainwinPlbuttonX = 242
mainwinPlbuttonY = 58
# "Shuffle" button
mainwinShuffleX = 164
mainwinShuffleY = 89
# "Repeat" button
mainwinRepeatX = 210
mainwinRepeatY = 89
# "About" button... as "main.png" area?
mainwinAboutX = 247
mainwinAboutY = 83
# window-manager "replacement" buttons
mainwinMinimizeX = 244
mainwinMinimizeY = 3
#
mainwinShadeX = 254
mainwinShadeY = 3
#
mainwinCloseX = 264
mainwinCloseY = 3
pledit.txt parsing ( default playlist colors )
------------------
Code: Select all
[Text]
Normal=#2499ff
Current=#ffeeff
NormalBG=#0a120a
SelectedBG=#0a124a
viscolor.txt parsing ( default visualisation colors )
Code: Select all
9, 34, 53
10, 18, 26
0, 54, 108
0, 58, 116
0, 62, 124
0, 66, 132
0, 70, 140
0, 74, 148
0, 78, 156
0, 82, 164
0, 86, 172
0, 92, 184
0, 98, 196
0, 104, 208
0, 110, 220
0, 116, 232
0, 122, 244
0, 128, 255
0, 128, 255
0, 104, 208
0, 80, 160
0, 56, 112
0, 32, 64
200, 200, 200
------------------------------------------
region.txt parsing (skinned windows in shaped window mode)
------------------
I don't think there is a "default" setting for it, while it may be to some interest..
A bit of a trial-and-error suggestion here, so please take it with a grain of salt
The window can be also shaped for top area only, as shown for example 2 below.
window names are:
[Normal] is skinned mainwindow in "normal" state
[windowshade] is skinned mainwindow in "shaded (14 pixel stripe-look)" state
[equalizer] is skinned equalizerwindow in "normal" state
[equalizerws] is skinned equalizerwindow in "shaded (14 pixel stripe-look)" state
------------------
Code: Select all
# all four corners rounded
[Normal]
NumPoints=4,4,4,4,4
PointList=5,0 270,0 270,116 5,116 3,1 272,1 272,115 3,115 2,2 273,2 273,114 2,114 1,3 274,3 274,113 1,113 0,5 275,5 275,111 0,111
------------------
Code: Select all
# only top area rounded
[Normal]
NumPoints=4,4,4,4,4
PointList=5,0 270,0 270,116 5,116 3,1 272,1 272,116 3,116 2,2 273,2 273,116 2,116 1,3 274,3 274,116 1,116 0,5 275,5 275,116 0,116