[pitivi] titleeditor: Add default foreground and background colors
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] titleeditor: Add default foreground and background colors
- Date: Wed, 24 Sep 2014 17:05:06 +0000 (UTC)
commit 9f0b5a1fb6f7ed6c6da4584910b11a18f7e1f6ca
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Thu Jun 5 01:29:33 2014 +0200
titleeditor: Add default foreground and background colors
pitivi/titleeditor.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index 5d07c3a..a95ecf3 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -38,6 +38,10 @@ from pitivi.utils.timeline import SELECT
from pitivi.utils.ui import argb_to_gdk_rgba, gdk_rgba_to_argb
+FOREGROUND_DEFAULT_COLOR = 0xFFFFFFFF # White
+BACKGROUND_DEFAULT_COLOR = 0x00000000 # Transparent
+
+
class TitleEditor(Loggable):
"""
Widget for configuring the selected title.
@@ -224,6 +228,8 @@ class TitleEditor(Loggable):
clip = GES.TitleClip()
clip.set_text("")
clip.set_duration(int(Gst.SECOND * 5))
+ clip.set_color(FOREGROUND_DEFAULT_COLOR)
+ clip.set_background(BACKGROUND_DEFAULT_COLOR)
# TODO: insert on the current layer at the playhead position.
# If no space is available, create a new layer to insert to on top.
self.app.gui.timeline_ui.insertEnd([clip])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]