Completely drop stylesheets. Move some of it inside the nm service, don't want to touch that code because it will be rewritten.

This commit is contained in:
Marco Pesenti Gritti 2007-02-20 15:10:18 +01:00
parent ee66b2237d
commit 3de915db96
8 changed files with 2 additions and 85 deletions

View File

@ -4,6 +4,7 @@ sugar_PYTHON = \
nmclient.py \
nminfo.py \
bubble.py \
style.py \
wepkeydialog.py
bin_SCRIPTS = sugar-nm-applet

View File

@ -26,8 +26,7 @@ import os
from gettext import gettext as _
import hippo
from sugar.graphics.menu import Menu
from sugar.graphics import style
import style
from sugar.graphics.iconcolor import IconColor
from sugar.graphics.timeline import Timeline
from wepkeydialog import WEPKeyDialog

View File

@ -12,5 +12,4 @@ sugar_PYTHON = \
keyhandler.py \
OverlayWindow.py \
Shell.py \
stylesheet.py \
hardwaremanager.py

View File

@ -1,43 +0,0 @@
# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import gtk
import hippo
from sugar.graphics.iconcolor import IconColor
from sugar.graphics import style
from sugar.graphics.grid import Grid
grid = Grid()
friends_FriendIcon = {
'scale' : style.large_icon_scale
}
clipboard_Bubble = {
'fill-color' : 0x646464FF,
'stroke-color' : 0x646464FF,
'progress-color' : 0x333333FF,
'spacing' : style.space_unit,
'padding' : style.space_unit * 1.5
}
clipboard_MenuItem_Title = {
'xalign' : hippo.ALIGNMENT_CENTER,
'padding-left': 5,
'color' : 0xFFFFFFFF,
'font' : style.get_font_description('Bold', 1.2)
}

View File

@ -19,8 +19,6 @@ sugar_PYTHON = \
roundbox.py \
snowflakebox.py \
spreadbox.py \
style.py \
stylesheet.py \
timeline.py \
toolbar.py \
units.py

View File

@ -20,7 +20,6 @@ import hippo
import gobject
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics import style
class Menu(gtk.Window):
__gsignals__ = {
@ -36,12 +35,10 @@ class Menu(gtk.Window):
canvas.show()
self._root = hippo.CanvasBox()
style.apply_stylesheet(self._root, 'menu')
canvas.set_root(self._root)
if title:
self._title_item = hippo.CanvasText(text=title)
style.apply_stylesheet(self._title_item, 'menu.Title')
self._root.append(self._title_item)
else:
self._title_item = None
@ -56,7 +53,6 @@ class Menu(gtk.Window):
def _create_separator(self):
separator = hippo.CanvasBox()
style.apply_stylesheet(separator, 'menu.Separator')
return separator
def _create_item_box(self):
@ -81,7 +77,6 @@ class Menu(gtk.Window):
self._create_item_box()
text = hippo.CanvasText(text=label)
style.apply_stylesheet(text, 'menu.Item')
if wrap:
text.set_property("size-mode", "wrap-word")
@ -96,7 +91,6 @@ class Menu(gtk.Window):
if not self._action_box:
self._create_action_box()
style.apply_stylesheet(icon, 'menu.ActionIcon')
icon.connect('activated', self._action_clicked_cb, action_id)
self._action_box.append(icon)

View File

@ -1,31 +0,0 @@
from sugar.graphics import style
menu = {
'background_color' : 0x000000FF,
'spacing' : style.space_unit,
'padding' : style.space_unit
}
menu_Title = {
'color' : 0xFFFFFFFF,
'font' : style.get_font_description('Bold', 1.2)
}
menu_Separator = {
'background_color' : 0xFFFFFFFF,
'box_height' : style.separator_thickness
}
menu_ActionIcon = {
'scale' : style.standard_icon_scale
}
menu_Item = {
'color' : 0xFFFFFFFF,
'font' : style.get_font_description('Plain', 1.1)
}
menu_Text = {
'color' : 0xFFFFFFFF,
'font' : style.get_font_description('Plain', 1.2)
}