[ease] [editor] Restored darker shading of embed.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] [editor] Restored darker shading of embed.
- Date: Fri, 30 Jul 2010 12:27:07 +0000 (UTC)
commit ef827396fad6ba6e53ee48575f03aafd92c4118b
Author: Nate Stedman <natesm gmail com>
Date: Fri Jul 30 08:26:48 2010 -0400
[editor] Restored darker shading of embed.
src/ease-editor-embed.vala | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/ease-editor-embed.vala b/src/ease-editor-embed.vala
index ef30781..c54f0a6 100644
--- a/src/ease-editor-embed.vala
+++ b/src/ease-editor-embed.vala
@@ -131,7 +131,7 @@ internal class Ease.EditorEmbed : ScrollableEmbed, UndoSource
* The shade factor of the EditorEmbed's background relative to typical
* GTK background color.
*/
- private const double SHADE_FACTOR = 0.9;
+ private const double SHADE_FACTOR = 0.85;
/**
* The size of the handles[] array.
@@ -211,17 +211,9 @@ internal class Ease.EditorEmbed : ScrollableEmbed, UndoSource
get_stage().use_fog = false;
// set the background to a faded version of the normal gtk background
- Clutter.Color out_color;
- var color = theme_color(BG_COLOR);
- if (color == null)
- {
- out_color = { 150, 150, 150, 255 };
- out_color.shade(SHADE_FACTOR, out out_color);
- }
- else
- {
- out_color = Transformations.gdk_color_to_clutter_color(color);
- }
+ Clutter.Color out_color, color;
+ GtkClutter.get_bg_color(this, Gtk.StateType.NORMAL, out color);
+ color.shade(SHADE_FACTOR, out out_color);
get_stage().color = out_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]