Changement sur le style

This commit is contained in:
tzim 2013-11-04 15:27:23 +00:00
parent eb10eb62eb
commit 5f5447cba8
6 changed files with 45 additions and 41 deletions

View file

@ -111,9 +111,6 @@ namespace DMX2
UpdListeEffets(); UpdListeEffets();
} }
Gdk.Color colGrey= new Gdk.Color(200,200,200);
Gdk.Color colWhite= new Gdk.Color(255,255,255);
void RenderMatriceNum (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) void RenderMatriceNum (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
{ {
if (Conduite.Courante==null) return; if (Conduite.Courante==null) return;
@ -125,12 +122,6 @@ namespace DMX2
num+= "* "; num+= "* ";
(cell as Gtk.CellRendererText).Text = num + (sequenceur.Lignes.IndexOf(l)+1).ToString(); (cell as Gtk.CellRendererText).Text = num + (sequenceur.Lignes.IndexOf(l)+1).ToString();
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
void RenderMatriceNom (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) void RenderMatriceNom (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
@ -138,10 +129,6 @@ namespace DMX2
if (Conduite.Courante==null) return; if (Conduite.Courante==null) return;
SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne; SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne;
(cell as Gtk.CellRendererText).Text = l.Nom; (cell as Gtk.CellRendererText).Text = l.Nom;
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
void RenderMatriceTop (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) void RenderMatriceTop (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
@ -150,11 +137,6 @@ namespace DMX2
SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne; SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne;
if (l.Top< TimeSpan.Zero) (cell as Gtk.CellRendererText).Text = string.Empty; if (l.Top< TimeSpan.Zero) (cell as Gtk.CellRendererText).Text = string.Empty;
else (cell as Gtk.CellRendererText).Text = (l.Top.TotalMilliseconds /100).ToString(); else (cell as Gtk.CellRendererText).Text = (l.Top.TotalMilliseconds /100).ToString();
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
void RenderMatriceCircuits (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) void RenderMatriceCircuits (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
@ -162,11 +144,6 @@ namespace DMX2
if (Conduite.Courante==null) return; if (Conduite.Courante==null) return;
SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne; SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne;
(cell as Gtk.CellRendererText).Text = l.Circuits; (cell as Gtk.CellRendererText).Text = l.Circuits;
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
void RenderMatriceValeur (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) void RenderMatriceValeur (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
@ -174,10 +151,6 @@ namespace DMX2
if (Conduite.Courante==null) return; if (Conduite.Courante==null) return;
SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne; SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne;
(cell as Gtk.CellRendererText).Text = (l.Valeur).ToString(); (cell as Gtk.CellRendererText).Text = (l.Valeur).ToString();
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
@ -186,11 +159,6 @@ namespace DMX2
if (Conduite.Courante==null) return; if (Conduite.Courante==null) return;
SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne; SequenceurMacro.Ligne l = tree_model.GetValue (iter, 0) as SequenceurMacro.Ligne;
(cell as Gtk.CellRendererText).Text = (l.Temps.TotalMilliseconds /100).ToString(); (cell as Gtk.CellRendererText).Text = (l.Temps.TotalMilliseconds /100).ToString();
if(tree_model.GetPath (iter).Indices[0]%2 == 0)
cell.CellBackgroundGdk = colGrey;
else
cell.CellBackgroundGdk = colWhite;
} }
void OnNomCellEdited (object o, EditedArgs args) void OnNomCellEdited (object o, EditedArgs args)

View file

@ -325,6 +325,7 @@ namespace DMX2
this.MatriceUI = new global::Gtk.NodeView (); this.MatriceUI = new global::Gtk.NodeView ();
this.MatriceUI.CanFocus = true; this.MatriceUI.CanFocus = true;
this.MatriceUI.Name = "MatriceUI"; this.MatriceUI.Name = "MatriceUI";
this.MatriceUI.RulesHint = true;
this.GtkScrolledWindow2.Add (this.MatriceUI); this.GtkScrolledWindow2.Add (this.MatriceUI);
this.hpaned2.Add (this.GtkScrolledWindow2); this.hpaned2.Add (this.GtkScrolledWindow2);
global::Gtk.Paned.PanedChild w61 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow2])); global::Gtk.Paned.PanedChild w61 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow2]));

View file

@ -195,6 +195,7 @@ namespace DMX2
this.effetsListe = new global::Gtk.TreeView (); this.effetsListe = new global::Gtk.TreeView ();
this.effetsListe.CanFocus = true; this.effetsListe.CanFocus = true;
this.effetsListe.Name = "effetsListe"; this.effetsListe.Name = "effetsListe";
this.effetsListe.RulesHint = true;
this.GtkScrolledWindow.Add (this.effetsListe); this.GtkScrolledWindow.Add (this.effetsListe);
this.hbox1.Add (this.GtkScrolledWindow); this.hbox1.Add (this.GtkScrolledWindow);
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow]));

View file

@ -213,6 +213,7 @@ namespace DMX2
this.effetsListe = new global::Gtk.TreeView (); this.effetsListe = new global::Gtk.TreeView ();
this.effetsListe.CanFocus = true; this.effetsListe.CanFocus = true;
this.effetsListe.Name = "effetsListe"; this.effetsListe.Name = "effetsListe";
this.effetsListe.RulesHint = true;
this.scrolledwindow1.Add (this.effetsListe); this.scrolledwindow1.Add (this.effetsListe);
this.vbox2.Add (this.scrolledwindow1); this.vbox2.Add (this.scrolledwindow1);
global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1])); global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1]));

View file

@ -370,6 +370,7 @@
<property name="MemberName" /> <property name="MemberName" />
<property name="CanFocus">True</property> <property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property> <property name="ShowScrollbars">True</property>
<property name="RulesHint">True</property>
<signal name="CursorChanged" handler="OnMatriceUICursorChanged" /> <signal name="CursorChanged" handler="OnMatriceUICursorChanged" />
</widget> </widget>
</child> </child>
@ -863,6 +864,7 @@
<property name="MemberName" /> <property name="MemberName" />
<property name="CanFocus">True</property> <property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property> <property name="ShowScrollbars">True</property>
<property name="RulesHint">True</property>
</widget> </widget>
</child> </child>
</widget> </widget>
@ -1765,6 +1767,7 @@
<widget class="Gtk.TreeView" id="effetsListe"> <widget class="Gtk.TreeView" id="effetsListe">
<property name="MemberName" /> <property name="MemberName" />
<property name="CanFocus">True</property> <property name="CanFocus">True</property>
<property name="RulesHint">True</property>
<signal name="CursorChanged" handler="OnEffetsListeCursorChanged" /> <signal name="CursorChanged" handler="OnEffetsListeCursorChanged" />
</widget> </widget>
</child> </child>

View file

@ -1,22 +1,47 @@
style "circuitspb"
{
font_name = "Sans 6"
}
widget "*.pb" style "circuitspb"
style "sombre" style "sombre"
{ {
bg[NORMAL] = {0.3, 0.3, 0.3} bg[NORMAL] = {0.4, 0.4, 0.4}
bg[SELECTED] = {0.44, 0.45, 0.5}
bg[ACTIVE] = {0.45, 0.45, 0.45}
bg[INSENSITIVE] = {0.2, 0.2, 0.2} bg[INSENSITIVE] = {0.2, 0.2, 0.2}
bg[PRELIGHT] = {0.4, 0.4, 0.48} bg[PRELIGHT] = {0.5, 0.5, 0.58}
base[NORMAL] = {0.35, 0.35, 0.35} base[NORMAL] = {0.35, 0.35, 0.35}
base[SELECTED] = {0.75, 0.35, 0.35} base[SELECTED] = {0.75, 0.35, 0.35}
base[ACTIVE] = {0.75, 0.75, 0.35} base[ACTIVE] = {0.75, 0.75, 0.35}
text[NORMAL] = {0.75, 0.75, 0.75} text[NORMAL] = {0.75, 0.75, 0.75}
fg[NORMAL] = {0.95, 1.0, 1.0} fg[NORMAL] = {1.0, 1.0, 1.0}
fg[PRELIGHT] = {1.0, 1.0, 1.0}
engine "clearlooks" {
#colorize_scrollbar = FALSE
toolbarstyle = 0
}
GtkTreeView::odd-row-color = {0.40, 0.40, 0.43}
#GtkTreeView::even-row-color = {0.35, 0.35, 0.35}
} }
class "GtkWidget" style "sombre"
style "scale" {
GtkScale::slider-width = 18
GtkScale::slider-length = 30
GtkRange::trough-side-details = 1
bg[NORMAL] = {0.64, 0.64, 0.70}
}
style "progressbar" {
bg[SELECTED] = {0.64, 0.64, 0.70}
}
style "circuitspb"
{
font_name = "DejaVu Sans 6"
}
style "test" {
bg[SELECTED] = {1.0, 0.4, 0.4}
}
style "counter" style "counter"
{ {
@ -25,4 +50,9 @@ style "counter"
font_name = "DejaVu Sans Mono 12" font_name = "DejaVu Sans Mono 12"
} }
class "GtkWidget" style "sombre"
class "GtkScale" style "scale"
class "GtkProgressBar" style "progressbar"
widget "*.pb" style "circuitspb"
#class "GtkScrollbar" style "test"
widget "*.timeLabel" style "counter" widget "*.timeLabel" style "counter"