Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2a4e5965 by Philipp Hörist at 2018-08-19T21:48:44Z
HistoryManager: Convert RGB to hex
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -89,6 +89,7 @@ from gajim.gtk import YesNoDialog
from gajim.gtk import ErrorDialog
from gajim.gtk import ConfirmationDialog
from gajim.gtk.filechoosers import FileSaveDialog
+from gajim.gtk.util import convert_rgb_to_hex
from gajim import gtkgui_helpers
@@ -393,16 +394,18 @@ class HistoryManager:
else:
color = None
if kind in (KindConstant.SINGLE_MSG_RECV,
- KindConstant.CHAT_MSG_RECV, KindConstant.GC_MSG):
- # it is the other side
- color = app.css_config.get_value('.gajim-incoming-nickname', StyleAttr.COLOR) # so incoming color
+ KindConstant.CHAT_MSG_RECV,
+ KindConstant.GC_MSG):
+ color = app.css_config.get_value(
+ '.gajim-incoming-nickname', StyleAttr.COLOR)
elif kind in (KindConstant.SINGLE_MSG_SENT,
- KindConstant.CHAT_MSG_SENT): # it is us
- color = app.css_config.get_value('.gajim-outgoing-nickname', StyleAttr.COLOR) # so outgoing color
+ KindConstant.CHAT_MSG_SENT):
+ color = app.css_config.get_value(
+ '.gajim-outgoing-nickname', StyleAttr.COLOR)
elif kind in (KindConstant.STATUS,
- KindConstant.GCSTATUS): # is is statuses
- # so status color
- color = app.css_config.get_value('.gajim-status-message', StyleAttr.COLOR)
+ KindConstant.GCSTATUS):
+ color = app.css_config.get_value(
+ '.gajim-status-message', StyleAttr.COLOR)
# include status into (status) message
if message is None:
message = ''
@@ -413,10 +416,11 @@ class HistoryManager:
message_ = '<span'
if color:
- message_ += ' foreground="%s"' % color
+ message_ += ' foreground="%s"' % convert_rgb_to_hex(color)
message_ += '>%s</span>' % GLib.markup_escape_text(message)
- self.logs_liststore.append((str(log_line_id), str(jid_id),
- time_, message_, subject, nickname))
+ self.logs_liststore.append(
+ (str(log_line_id), str(jid_id),
+ time_, message_, subject, nickname))
def _fill_search_results_listview(self, text):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2a4e59654f62ba63fba2cf9d32036a6404…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2a4e59654f62ba63fba2cf9d32036a6404…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim
Commits:
e8526bb0 by Philipp Hörist at 2018-08-19T21:48:07Z
HistoryManager: Convert RGB to hex
- - - - -
1 changed file:
- gajim/history_manager.py
Changes:
=====================================
gajim/history_manager.py
=====================================
--- a/gajim/history_manager.py
+++ b/gajim/history_manager.py
@@ -89,6 +89,7 @@ from gajim.gtk import YesNoDialog
from gajim.gtk import ErrorDialog
from gajim.gtk import ConfirmationDialog
from gajim.gtk.filechoosers import FileSaveDialog
+from gajim.gtk.util import convert_rgb_to_hex
from gajim import gtkgui_helpers
@@ -393,16 +394,18 @@ class HistoryManager:
else:
color = None
if kind in (KindConstant.SINGLE_MSG_RECV,
- KindConstant.CHAT_MSG_RECV, KindConstant.GC_MSG):
- # it is the other side
- color = app.css_config.get_value('.gajim-incoming-nickname', StyleAttr.COLOR) # so incoming color
+ KindConstant.CHAT_MSG_RECV,
+ KindConstant.GC_MSG):
+ color = app.css_config.get_value(
+ '.gajim-incoming-nickname', StyleAttr.COLOR)
elif kind in (KindConstant.SINGLE_MSG_SENT,
- KindConstant.CHAT_MSG_SENT): # it is us
- color = app.css_config.get_value('.gajim-outgoing-nickname', StyleAttr.COLOR) # so outgoing color
+ KindConstant.CHAT_MSG_SENT):
+ color = app.css_config.get_value(
+ '.gajim-outgoing-nickname', StyleAttr.COLOR)
elif kind in (KindConstant.STATUS,
- KindConstant.GCSTATUS): # is is statuses
- # so status color
- color = app.css_config.get_value('.gajim-status-message', StyleAttr.COLOR)
+ KindConstant.GCSTATUS):
+ color = app.css_config.get_value(
+ '.gajim-status-message', StyleAttr.COLOR)
# include status into (status) message
if message is None:
message = ''
@@ -413,10 +416,11 @@ class HistoryManager:
message_ = '<span'
if color:
- message_ += ' foreground="%s"' % color
+ message_ += ' foreground="%s"' % convert_rgb_to_hex(color)
message_ += '>%s</span>' % GLib.markup_escape_text(message)
- self.logs_liststore.append((str(log_line_id), str(jid_id),
- time_, message_, subject, nickname))
+ self.logs_liststore.append(
+ (str(log_line_id), str(jid_id),
+ time_, message_, subject, nickname))
def _fill_search_results_listview(self, text):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e8526bb063a9d58c1de94c1d89c05fbe44…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e8526bb063a9d58c1de94c1d89c05fbe44…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim
Commits:
b0aa555a by Philipp Hörist at 2018-08-19T20:30:34Z
Appveyor: build correct branch
- - - - -
1 changed file:
- appveyor.yml
Changes:
=====================================
appveyor.yml
=====================================
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -10,7 +10,7 @@ environment:
branches:
only:
- - master
+ - gajim_1.1
clone_depth: 1
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b0aa555ac85e83e76ddfadc1ba2e8dcc45…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b0aa555ac85e83e76ddfadc1ba2e8dcc45…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e128a3f6 by Philipp Hörist at 2018-08-19T19:38:11Z
Fix emoji theme fallback
- - - - -
1 changed file:
- gajim/gtk/emoji_chooser.py
Changes:
=====================================
gajim/gtk/emoji_chooser.py
=====================================
--- a/gajim/gtk/emoji_chooser.py
+++ b/gajim/gtk/emoji_chooser.py
@@ -276,10 +276,6 @@ class EmojiChooser(Gtk.Popover):
def _get_current_theme(self):
theme = app.config.get('emoticons_theme')
- if not theme:
- log.warning('No emoji theme set')
- return
-
themes = helpers.get_available_emoticon_themes()
if theme not in themes:
if sys.platform not in ('win32', 'darwin'):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e128a3f6760e41ccd0bbcf3679c359d31c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e128a3f6760e41ccd0bbcf3679c359d31c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim
Commits:
8564edd5 by Philipp Hörist at 2018-08-19T19:37:34Z
Fix emoji theme fallback
- - - - -
1 changed file:
- gajim/gtk/emoji_chooser.py
Changes:
=====================================
gajim/gtk/emoji_chooser.py
=====================================
--- a/gajim/gtk/emoji_chooser.py
+++ b/gajim/gtk/emoji_chooser.py
@@ -276,10 +276,6 @@ class EmojiChooser(Gtk.Popover):
def _get_current_theme(self):
theme = app.config.get('emoticons_theme')
- if not theme:
- log.warning('No emoji theme set')
- return
-
themes = helpers.get_available_emoticon_themes()
if theme not in themes:
if sys.platform not in ('win32', 'darwin'):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8564edd5f3265bf80e899cd857c66a5cd5…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8564edd5f3265bf80e899cd857c66a5cd5…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch gajim_1.1 at gajim / gajim
Commits:
6a33163d by Philipp Hörist at 2018-08-19T16:09:08Z
Update Gajim version to 1.0.99
- - - - -
1 changed file:
- gajim/__init__.py
Changes:
=====================================
gajim/__init__.py
=====================================
--- a/gajim/__init__.py
+++ b/gajim/__init__.py
@@ -1,7 +1,7 @@
import os
import subprocess
-__version__ = "1.0.3"
+__version__ = "1.0.99"
IS_FLATPAK = False
if os.path.exists('/app/share/run-as-flatpak'):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6a33163d429982e6accb84d00d08a7aa03…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/6a33163d429982e6accb84d00d08a7aa03…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8ab60762 by Philipp Hörist at 2018-08-19T16:08:00Z
Update Gajim version to 1.0.99
- - - - -
1 changed file:
- gajim/__init__.py
Changes:
=====================================
gajim/__init__.py
=====================================
--- a/gajim/__init__.py
+++ b/gajim/__init__.py
@@ -1,7 +1,7 @@
import os
import subprocess
-__version__ = "1.0.3"
+__version__ = "1.0.99"
IS_FLATPAK = False
if os.path.exists('/app/share/run-as-flatpak'):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8ab607629b6ced1b47bebadc75776a24ea…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8ab607629b6ced1b47bebadc75776a24ea…
You're receiving this email because of your account on dev.gajim.org.