11
PUBLIC SUB DisableControls()
12
IF Main.Usession = "3D" THEN
13
SELECT CASE Main.Uversion
15
FMain.sliderhome3.Enabled = FALSE
16
FMain.sliderhome3.ToolTip = FMain.TextLabel25.Text
17
FMain.pichome3.Enabled = FALSE
18
FMain.TextLabel28.Foreground = &H00B0B0B0&
20
FMain.sliderhome4.Enabled = FALSE
21
FMain.sliderhome4.ToolTip = FMain.TextLabel25.Text
22
FMain.pichome4.Enabled = FALSE
23
FMain.TextLabel31.Foreground = &H00B0B0B0&
25
FMain.ComboBox3.Enabled = FALSE
26
FMain.ComboBox3.ToolTip = FMain.TextLabel25.Text
27
FMain.TextLabel30.Foreground = &H00B0B0B0&
30
FMain.sliderhome3.Enabled = FALSE
31
FMain.sliderhome3.ToolTip = FMain.TextLabel25.Text
32
FMain.pichome3.Enabled = FALSE
33
FMain.TextLabel28.Foreground = &H00B0B0B0&
35
FMain.sliderhome4.Enabled = FALSE
36
FMain.sliderhome4.ToolTip = FMain.TextLabel25.Text
37
FMain.pichome4.Enabled = FALSE
38
FMain.TextLabel31.Foreground = &H00B0B0B0&
44
FMain.ComboBox3.Enabled = FALSE
45
FMain.ComboBox3.ToolTip = FMain.TextLabel25.Text
46
FMain.TextLabel30.Foreground = &H00B0B0B0&
48
FMain.sliderhome3.Enabled = FALSE
49
FMain.sliderhome3.ToolTip = FMain.TextLabel25.Text
50
FMain.pichome3.Enabled = FALSE
51
FMain.TextLabel28.Foreground = &H00B0B0B0&
53
FMain.sliderhome4.Enabled = FALSE
54
FMain.sliderhome4.ToolTip = FMain.TextLabel25.Text
55
FMain.pichome4.Enabled = FALSE
56
FMain.TextLabel31.Foreground = &H00B0B0B0&
58
IF Main.Uversion <> "12.04" THEN
59
FMain.ComboBox4.Enabled = FALSE
60
FMain.ComboBox4.ToolTip = FMain.TextLabel25.Text
61
FMain.TextLabel29.Foreground = &H00B0B0B0&
67
PUBLIC SUB Combo_insert()
69
FMain.ComboBox3.Add(("OFF"))
70
FMain.ComboBox3.Add(("ON"))
71
FMain.ComboBox3.Add(("Smart"))
74
IF Main.Usession = "3D" THEN
75
FMain.ComboBox4.Add("Automatic")
76
FMain.ComboBox4.Add("Desktop")
77
FMain.ComboBox4.Add("Netbook")
79
FMain.ComboBox4.Add("Automatic")
80
FMain.ComboBox4.Add("Full screen")
85
PUBLIC SUB readSettings()
86
DIM tmpValue AS Variant
87
DIM tmpShell AS String
89
SELECT CASE Main.Uversion
91
tmpValue = Main.GsettingsGet("com.canonical.Unity.ApplicationsLens", "display-available-apps") ' display-available-apps
92
FMain.sliderhome3.X = 0
93
IF Left$(tmpValue, Len(tmpValue) - 1) = "true" THEN FMain.sliderhome3.X = 36
94
IF tmpValue = "true" THEN FMain.sliderhome3.X = 36
96
tmpValue = Main.GsettingsGet("com.canonical.Unity.ApplicationsLens", "display-recent-apps") ' display-recent-apps
97
FMain.sliderhome4.X = 0
98
IF Left$(tmpValue, Len(tmpValue) - 1) = "true" THEN FMain.sliderhome4.X = 36
99
IF tmpValue = "true" THEN FMain.sliderhome4.X = 36
103
tmpValue = Main.GconfGet("/apps/compiz-1/plugins/unityshell/screen0/options/", "dash_blur_experimental") ' Blur
104
FMain.ComboBox3.Index = tmpValue
106
IF Main.Usession = "3D" THEN
107
tmpValue = Main.GsettingsGet("com.canonical.Unity", "form-factor") ' Dash size
108
IF tmpValue = "'Automatic'\n" THEN FMain.ComboBox4.Index = 0
109
IF tmpValue = "'Desktop'\n" THEN FMain.ComboBox4.Index = 1
110
IF tmpValue = "'Netbook'\n" THEN FMain.ComboBox4.Index = 2
112
tmpValue = Main.GsettingsGet("com.canonical.Unity2d.Dash", "full-screen") ' Dash size
113
tmpValue = Left$(tmpValue, Len(tmpValue) - 1)
115
IF tmpValue = "true" THEN FMain.ComboBox4.Index = 1
116
IF tmpValue = "false" THEN FMain.ComboBox4.Index = 0
122
PUBLIC SUB SetLabel() ' setup label
127
PUBLIC SUB SetPictureBox()
128
IF FMain.sliderhome3.Enabled = FALSE THEN FMain.pichome3.Enabled = FALSE
129
IF FMain.sliderhome4.Enabled = FALSE THEN FMain.pichome4.Enabled = FALSE
133
PUBLIC SUB defaultSettings()
134
SELECT CASE Main.Uversion
136
SHELL "gsettings reset com.canonical.Unity.ApplicationsLens display-available-apps" WAIT ' display-available-apps
137
SHELL "gsettings reset com.canonical.Unity.ApplicationsLens display-recent-apps" WAIT ' display-recent-apps
138
SHELL "gconftool --unset /apps/compiz-1/plugins/unityshell/screen0/options/dash_blur_experimental" WAIT ' Blur
139
IF Main.Usession = "3D" THEN
140
SHELL "gsettings reset com.canonical.Unity form-factor" WAIT ' Dash size 3D
142
SHELL "gsettings reset com.canonical.Unity2d.Dash full-screen" WAIT ' Dash size 3D
146
SHELL "gconftool --unset /apps/compiz-1/plugins/unityshell/screen0/options/dash_blur_experimental" WAIT ' Blur
147
SHELL "gsettings set com.canonical.Unity form-factor 'Automatic'" WAIT ' Dash size
150
SHELL "gsettings set com.canonical.Unity form-factor 'Automatic'" WAIT ' Dash size