Move UI directory

This commit is contained in:
noisymime 2008-02-24 20:42:52 +00:00
parent 406c9ac614
commit f0af3ed02a
94 changed files with 30 additions and 30 deletions

View File

@ -7,6 +7,7 @@ import pango
import copy
class GlossMgr:
theme_dir = "themes"
def __init__ (self, stage):
self.stage = stage
@ -29,30 +30,12 @@ class GlossMgr:
#The background is a bit messy due to the depth issues :(
background = self.themeMgr.get_texture("background", None, None)
background.set_size(self.stage.get_width(), self.stage.get_height())
"""
(width, height) = background.get_abs_size()
print background.get_abs_size()
#background.set_anchor_point_from_gravity(clutter.GRAVITY_NORTH_WEST)
background.set_anchor_point(int(background.get_width()/3.5), int(background.get_height()/3.5))
#background.set_anchor_point_from_gravity(clutter.GRAVITY_CENTER)
background.set_depth(-self.stage.get_width())
print background.get_abs_size()
#
(width_new, height_new) = background.get_abs_size()
#width = self.stage.get_width()
#height = self.stage.get_height()
scale_x = float(width)/float(width_new)
scale_y = float(height)/float(height_new)
background.set_scale(scale_x, scale_y)
print background.get_abs_size()
#background.set_width(width)
#background.set_height(height)
"""
background.show()
self.stage.add(background)
#Setip the selector bar
#Setup the selector bar
self.selector_bar = MenuSelector(self)
self.selector_bar.show_all()
self.stage.add(self.selector_bar)
@ -300,6 +283,8 @@ class MenuSelector(clutter.Texture):
return self.x_offset
class message():
theme_dir = "themes"
font = "Lucida Grande "
message_font_size = 30
detail_font_size = 22
@ -317,7 +302,7 @@ class message():
self.main_group = clutter.Group()
pixbuf = gtk.gdk.pixbuf_new_from_file("ui/splash_box.png")
pixbuf = gtk.gdk.pixbuf_new_from_file(self.theme_dir + "/splash_box.png")
self.box = clutter.Texture()
self.box.set_pixbuf(pixbuf)
self.box.set_opacity(int(255 * 0.75))

View File

@ -6,8 +6,8 @@ class Spinner (clutter.Texture):
def __init__(self):
clutter.Texture.__init__ (self)
#self.texture = clutter.Texture()
pixbuf = gtk.gdk.pixbuf_new_from_file("ui/spinner.svg")
#Theme me please
pixbuf = gtk.gdk.pixbuf_new_from_file("themes/spinner.svg")
self.set_pixbuf(pixbuf)
def start(self):

View File

@ -25,7 +25,8 @@ class SplashScr(clutter.Group):
self.centre_group = clutter.Group()
self.add(self.centre_group)
pixbuf = gtk.gdk.pixbuf_new_from_file("ui/splash_box.png")
#THIS NEEDS THEMING!!!
pixbuf = gtk.gdk.pixbuf_new_from_file("themes/splash_box.png")
self.box = clutter.Texture()
self.box.set_pixbuf(pixbuf)
self.box.set_opacity(int(255 * 0.75))

View File

@ -49,7 +49,7 @@ class MainApp:
self.args = args
self.stage = clutter.stage_get_default()
self.stage = clutter.Stage()
self.stage.set_color(clutter.color_parse('Black'))
self.stage.connect('button-press-event', self.on_button_press_event)
#hide the cursor

View File

@ -5,6 +5,8 @@ import gtk
from xml.dom import minidom
class ThemeMgr:
theme_dir = "themes/"
defaultTheme = "default"
currentTheme = "default"
currentTheme = "Pear"
@ -16,14 +18,14 @@ class ThemeMgr:
self.docs = []
self.default_docs = []
theme_dir = "ui/" + self.currentTheme
self.importDocs(theme_dir, self.docs)
current_theme_dir = self.theme_dir + self.currentTheme
self.importDocs(current_theme_dir, self.docs)
#If the current theme is the default theme, we just use the one list, else create a second one
if self.currentTheme == self.defaultTheme:
self.default_docs = self.docs
else:
theme_dir = "ui/" + self.defaultTheme
self.importDocs(theme_dir, self.default_docs)
current_theme_dir = self.theme_dir + self.defaultTheme
self.importDocs(current_theme_dir, self.default_docs)
def importDocs(self, dir, docs):
file_list = os.listdir(dir)
@ -274,7 +276,7 @@ class ThemeMgr:
if src == "None":
return texture
src = "ui/" + self.currentTheme + "/" + src
src = self.theme_dir + self.currentTheme + "/" + src
pixbuf = gtk.gdk.pixbuf_new_from_file(src)
texture.set_pixbuf(pixbuf)

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 214 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 517 KiB

After

Width:  |  Height:  |  Size: 517 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 214 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View File

@ -11,4 +11,16 @@
</position>
</texture>
<texture id="tv_osd_box">
<image>video_osd/osd_bar3.png</image>
<dimensions type="relativeToStage">
<width>70%</width>
<height>5%</height>
</dimensions>
<position type="relativeToStage">
<x>95%</x>
<y>0</y>
</position>
</texture>
</gloss-theme>

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 517 KiB

After

Width:  |  Height:  |  Size: 517 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 238 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 114 KiB

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 762 B

After

Width:  |  Height:  |  Size: 762 B

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 875 B

After

Width:  |  Height:  |  Size: 875 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 517 KiB

After

Width:  |  Height:  |  Size: 517 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 732 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB