[pitivi] ui: Change colors for Audio and Title Clips
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui: Change colors for Audio and Title Clips
- Date: Sat, 21 Dec 2019 07:04:02 +0000 (UTC)
commit 5ab386aa2b8a33407af3606640397841577a61dd
Author: Diego Garcia Gangl <dnicolas gmail com>
Date: Fri Apr 26 21:17:56 2019 -0300
ui: Change colors for Audio and Title Clips
pitivi/coptimizations/renderer.c | 2 +-
pitivi/timeline/elements.py | 4 ++++
pitivi/utils/ui.py | 12 ++++++++++--
3 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/coptimizations/renderer.c b/pitivi/coptimizations/renderer.c
index 2f939412..b8e1080c 100644
--- a/pitivi/coptimizations/renderer.c
+++ b/pitivi/coptimizations/renderer.c
@@ -36,7 +36,7 @@ py_fill_surface (PyObject * self, PyObject * args)
ctx = cairo_create (surface);
- cairo_set_source_rgb (ctx, 0.2, 0.6, 0.0);
+ cairo_set_source_rgb (ctx, 0.5, 0.7, 0.36);
cairo_set_line_width (ctx, 0.5);
cairo_move_to (ctx, 0, height);
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 45b57fad..5d25afc5 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -1417,6 +1417,10 @@ class UriClip(SourceClip):
class TitleClip(SourceClip):
__gtype_name__ = "PitiviTitleClip"
+ def __init__(self, layer, ges_clip):
+ SourceClip.__init__(self, layer, ges_clip)
+ self.get_style_context().add_class("TitleClip")
+
def _add_child(self, ges_timeline_element):
SourceClip._add_child(self, ges_timeline_element)
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index faa3c9ff..0159687e 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -172,7 +172,7 @@ EDITOR_PERSPECTIVE_CSS = """
}
.AudioBackground {
- background-color: #496c21;
+ background-color: rgb(60, 97, 43);
}
.VideoBackground {
@@ -180,13 +180,21 @@ EDITOR_PERSPECTIVE_CSS = """
}
.AudioBackground:selected {
- background-color: #1b2e0e;
+ background-color: rgb(33, 61, 45);
}
.VideoBackground:selected {
background-color: #0f0f0f;
}
+ .TitleClip .VideoBackground {
+ background-color: rgb(94, 78, 102);
+ }
+
+ .TitleClip .VideoBackground:selected {
+ background-color: shade(rgb(94, 78, 102), 0.4);
+ }
+
.KeyframeCurve {
background-color: rgba(0, 0, 0, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]