Skip to content

Commit 13ad391

Browse files
author
falkTX
committed
Cleanup
1 parent 34421dd commit 13ad391

File tree

2 files changed

+12
-41
lines changed

2 files changed

+12
-41
lines changed

welcome/welcome.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def do_copy_theme(fontSize, copy_all=False):
159159
os.system("cp '%s/%s' '%s/.%s'" % (CONFIG_THEME_DIR, sfile, HOME, sfile))
160160
os.system("sed -i s/_X-FONTSIZE-X_/%i/ '%s/.%s'" % (fontSize, HOME, sfile))
161161

162-
os.system('gconftool-2 -t str -s /apps/metacity/general/theme "KXStudio"')
162+
#os.system('gconftool-2 -t str -s /apps/metacity/general/theme "KXStudio"')
163163
os.system('gconftool-2 -t str -s /apps/metacity/general/button_layout "close,minimize,maximize:menu"')
164164
os.system('gconftool-2 -t str -s /apps/metacity/general/titlebar_font "DejaVu Sans Bold %i"' % fontSize)
165165
os.system('gconftool-2 -t str -s /apps/nautilus/preferences/desktop_font "DejaVu Sans %i"' % fontSize)
@@ -313,13 +313,6 @@ def __init__(self, firstRun, parent=None):
313313
if firstRun:
314314
self.label_7.setVisible(False)
315315

316-
# TODO
317-
self.label_5.setEnabled(False)
318-
self.label_5.setVisible(False)
319-
self.cb_style.setEnabled(False)
320-
self.cb_style.setVisible(False)
321-
# Update your theme to one of the KXStudio defaults.<br/>You can choose the <b>classic dark and flat</b> or a new <b>light green unity-like</b> style.
322-
323316
QTimer.singleShot(0, self.disableNext)
324317

325318
def checkNext(self, clicked):
@@ -335,9 +328,8 @@ def enableNext(self):
335328
self.button(QWizard.NextButton).setEnabled(True)
336329

337330
def showScreenshot(self):
338-
styleIndex = self.cb_style.currentIndex()
339331
box = QMessageBox(self)
340-
box.setIconPixmap(QPixmap(os.path.join(PWD, "icons", "screenshot-green.png" if styleIndex != 0 else "screenshot-black.png")))
332+
box.setIconPixmap(QPixmap(os.path.join(PWD, "icons", "screenshot-black.png")))
341333
box.setWindowTitle(self.tr("Welcome to KXStudio - Screenshot"))
342334
box.exec_()
343335

welcome/welcome.ui

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>615</width>
10-
<height>509</height>
10+
<height>565</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -130,7 +130,7 @@ Please select one of the options below or uncheck &quot;Update settings&quot;, a
130130
<item>
131131
<widget class="QRadioButton" name="rb_basic">
132132
<property name="text">
133-
<string>Update basic settings</string>
133+
<string>&amp;Update basic settings</string>
134134
</property>
135135
</widget>
136136
</item>
@@ -253,7 +253,7 @@ Use it to clean up your settings, or if you just installed KXStudio.</string>
253253
</sizepolicy>
254254
</property>
255255
<property name="title">
256-
<string>Update theme</string>
256+
<string>Update &amp;theme</string>
257257
</property>
258258
<property name="flat">
259259
<bool>true</bool>
@@ -288,29 +288,15 @@ Use it to clean up your settings, or if you just installed KXStudio.</string>
288288
</property>
289289
</widget>
290290
</item>
291+
<item row="1" column="1">
292+
<widget class="QLabel" name="label_6">
293+
<property name="text">
294+
<string>Note that reverting back theme changes is not trivial, so &lt;b&gt;be sure this is what you want&lt;/b&gt;.</string>
295+
</property>
296+
</widget>
297+
</item>
291298
<item row="2" column="1">
292299
<layout class="QHBoxLayout" name="horizontalLayout_4">
293-
<item>
294-
<widget class="QLabel" name="label_5">
295-
<property name="text">
296-
<string>Style: (TODO)</string>
297-
</property>
298-
</widget>
299-
</item>
300-
<item>
301-
<widget class="QComboBox" name="cb_style">
302-
<item>
303-
<property name="text">
304-
<string>Classic dark and flat</string>
305-
</property>
306-
</item>
307-
<item>
308-
<property name="text">
309-
<string>Unity-like light green</string>
310-
</property>
311-
</item>
312-
</widget>
313-
</item>
314300
<item>
315301
<widget class="QLabel" name="label_4">
316302
<property name="text">
@@ -360,13 +346,6 @@ Use it to clean up your settings, or if you just installed KXStudio.</string>
360346
</item>
361347
</layout>
362348
</item>
363-
<item row="1" column="1">
364-
<widget class="QLabel" name="label_6">
365-
<property name="text">
366-
<string>Note that reverting back theme changes is not trivial, so &lt;b&gt;be sure this is what you want&lt;/b&gt;.</string>
367-
</property>
368-
</widget>
369-
</item>
370349
</layout>
371350
</widget>
372351
</item>

0 commit comments

Comments
 (0)