added the first version of the RC file

This commit is contained in:
fgerlits 2007-06-04 16:51:54 +00:00
parent 03dc9b2b6a
commit 7724510600
2 changed files with 74 additions and 4 deletions

View File

@ -0,0 +1,68 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2007 Media Development Loan Fund
#
# This file is part of the Campcaster project.
# http://campcaster.campware.org/
# To report bugs, send an e-mail to bugs@campware.org
#
# Campcaster 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.
#
# Campcaster 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 Campcaster; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Author : $Author$
# Version : $Revision$
# Location : $URL$
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Gtk+ RC file for the Campcaster project
#-------------------------------------------------------------------------------
gtk_color_scheme = "fg_color:#5a5a5a\nbg_color:#ffffff\ntext_color:#5a5a5a\nbase_color:#ffffff\nselected_fg_color:#5a5a5a\nselected_bg_color:#97bacf\nprelight_color:#9ebadb"
style "default"
{
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = darker (@bg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = @prelight_color
bg[SELECTED] = @selected_bg_color
bg[ACTIVE] = shade (0.9, @bg_color)
bg[INSENSITIVE] = @bg_color
text[NORMAL] = @text_color
text[PRELIGHT] = @text_color
text[ACTIVE] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[INSENSITIVE] = darker (@base_color)
base[NORMAL] = @base_color
base[PRELIGHT] = @prelight_color
base[ACTIVE] = shade (0.9, @selected_bg_color)
base[SELECTED] = @selected_bg_color
base[INSENSITIVE] = @base_color
}
style "treeView"
{
# GtkTreeView::odd-row-color = "#eaeaea"
# GtkTreeView::even-row-color = "#c7cdd3"
}
class "GtkWidget" style "default"
class "GtkTreeView" style "treeView"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
#-------------------------------------------------------------------------------
# Copyright (c) 2004 Media Development Loan Fund
# Copyright (c) 2007 Media Development Loan Fund
#
# This file is part of the Campcaster project.
# http://campcaster.campware.org/
@ -49,7 +49,8 @@ class ScratchpadWindow
treeView = @glade["treeview1"]
treeView.model = @listStore
audioClipIcon = Gdk::Pixbuf.new("audioClipIcon.png")
cwd = File.dirname(__FILE__)
audioClipIcon = Gdk::Pixbuf.new(cwd + "/audioClipIcon.png")
cellRenderer0 = Gtk::CellRendererPixbuf.new
cellRenderer0.pixbuf = audioClipIcon
treeViewColumn0 = Gtk::TreeViewColumn.new("Type",
@ -79,7 +80,8 @@ class ScratchpadWindow
end
Gtk.init
path = File.dirname(__FILE__)
scratchpadWindow = ScratchpadWindow.new(path + "/scratchpadWindow.glade")
cwd = File.dirname(__FILE__)
Gtk::RC.parse(cwd + "/scratchpadWindow.gtkrc")
scratchpadWindow = ScratchpadWindow.new(cwd + "/scratchpadWindow.glade")
scratchpadWindow.run