~ubuntu-branches/ubuntu/quantal/kscd/quantal-proposed

« back to all changes in this revision

Viewing changes to gui/skin/README.skin

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-06-14 17:35:46 UTC
  • Revision ID: package-import@ubuntu.com-20120614173546-0t4dq1zkvl62ebpd
Tags: upstream-4.8.90+repack
ImportĀ upstreamĀ versionĀ 4.8.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
How To Create Your Own Skin
 
3
 
 
4
There is 2 main steps to create an KsCD skin:
 
5
1 - Draw the 'default' KsCD with the buttons positioned at the right place.
 
6
2 - Draw the other buttons in the others states.
 
7
 
 
8
A button can have 3 states:
 
9
 * default.
 
10
 * pressed : when the mouse clicks on the button.
 
11
 * over : when the mouse is over the button.
 
12
 
 
13
1. Draw the 'default' KsCD
 
14
 
 
15
a) Create the background with 'kscdBack_default' id :
 
16
        - mustn't have any transform attribute on it (see its xml)
 
17
        - his position must be the following : x=0, y=0 (in the top left corner)
 
18
        
 
19
b) Rules for drawing a default button:
 
20
 * First draw the button the way you want in the top left corner.
 
21
 * Name this button with the corresponding id (see list below).
 
22
 * Translate the button to the place you want on the background.
 
23
 
 
24
The button list to be drawn:
 
25
        - play_default
 
26
        - stop_default
 
27
        - eject_default
 
28
        - next_default
 
29
        - previous_default
 
30
        - volume_default
 
31
        - loop_default
 
32
        - random_default
 
33
        - tracklist_default
 
34
        - minimize_default
 
35
        - close_default
 
36
        - mute_default
 
37
        - panel_default
 
38
        - seekBar_default
 
39
        - seekCursor_default
 
40
 
 
41
c) Then select every 'default' items and group them with the id:'kscd_default'.
 
42
 
 
43
2 - Draw the other buttons
 
44
 
 
45
Then you will have to redraw each button in every state :
 
46
 
 
47
List of buttons id :
 
48
        - pause_default
 
49
        - looptrack_default
 
50
        - loopdisc_default
 
51
        - unmute_default
 
52
        - popup_default
 
53
        
 
54
        - play_over
 
55
        - pause_over
 
56
        - stop_over
 
57
        - eject_over
 
58
        - next_over
 
59
        - previous_over
 
60
        - loop_over
 
61
        - looptrack_over
 
62
        - loopdisc_over
 
63
        - random_over
 
64
        - tracklist_over
 
65
        - minimize_over
 
66
        - close_over
 
67
        - mute_over
 
68
        - unmute_over
 
69
        - seekCursor_over
 
70
        
 
71
        - play_pressed
 
72
        - pause_pressed
 
73
        - stop_pressed
 
74
        - eject_pressed
 
75
        - next_pressed
 
76
        - previous_pressed
 
77
        - loop_pressed
 
78
        - looptrack_pressed
 
79
        - loopdisc_pressed
 
80
        - random_pressed
 
81
        - tracklist_pressed
 
82
        - minimize_pressed
 
83
        - close_pressed
 
84
        - mute_pressed
 
85
        - unmute_pressed
 
86
        - seekCursor_pressed
 
 
b'\\ No newline at end of file'