Home | Trees | Indices | Help |
|
---|
|
1 #! /usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 # Copyright (C) 2011 ~ 2012 Deepin, Inc. 5 # 2011 ~ 2012 Wang Yong 6 # 7 # Author: Wang Yong <lazycat.manatee@gmail.com> 8 # Maintainer: Wang Yong <lazycat.manatee@gmail.com> 9 # 10 # This program is free software: you can redistribute it and/or modify 11 # it under the terms of the GNU General Public License as published by 12 # the Free Software Foundation, either version 3 of the License, or 13 # any later version. 14 # 15 # This program is distributed in the hope that it will be useful, 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 # GNU General Public License for more details. 19 # 20 # You should have received a copy of the GNU General Public License 21 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22 23 # This module *just* use for test module under dtk.ui 24 25 from skin_config import skin_config 26 from theme import Theme, ui_theme 27 from utils import get_parent_dir 28 import os 29 30 # Init skin config. 31 skin_config.init_skin( 32 "01", 33 os.path.join(get_parent_dir(__file__, 3), "skin"), 34 os.path.expanduser("~/.config/deepin-demo/skin"), 35 os.path.expanduser("~/.config/deepin-demo/skin_config.ini"), 36 "deepin-media-player", 37 "1.0" 38 ) 39 40 # Create application theme. 41 app_theme = Theme( 42 os.path.join(get_parent_dir(__file__, 3), "app_theme"), 43 os.path.expanduser("~/.config/deepin-demo/theme") 44 ) 45 46 # Set theme. 47 skin_config.load_themes(ui_theme, app_theme) 48
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 8 13:17:40 2012 | http://epydoc.sourceforge.net |