Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2819)

Issue 314280043: ui/gtk3: Refactor color of a selected candidate on lookup window (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 5 months ago by fujiwara
Modified:
7 years, 5 months ago
Reviewers:
shawn.p.huang, Peng
CC:
shawn.p.huang_gmail.com
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

ui/gtk3: Refactor color of a selected candidate on lookup window Recenly 'background-color' CSS property does not indicate the actual background color in GTK 3.22 and IBus uses '-gtk-secondary-caret-color' CSS property instead. But I found every themes do not have '-gtk-secondary-caret-color' CSS property even if the latest GTK is used. Some themes, e.g. distro themes or third party themes, uses 'background-color' CSS property for the background color of the selected text. This patch compares the colors of the normal 'background-color' and the selected 'background-color' and in case they are different, uses the selected 'background-color', otherwise the selected '-gtk-secondary-caret-color'. Also now IBus checks the colors of a dummy GtkTextView rather than ones of GtkLabel on the lookup window because some themes do not configure the selected bacground color in GtkLabel. BUG=https://github.com/ibus/ibus/issues/1871 Committed: bdc83bcbe3c9f07a267499c297db12c68af82fa2

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated with message #2 #

Patch Set 3 : Added set_parent(null) #

Total comments: 4

Patch Set 4 : Updated with message #6 #

Patch Set 5 : Updated with changed signal #

Patch Set 6 : Fixed typo #

Total comments: 4

Patch Set 7 : Updated with messsage #8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -20 lines) Patch
M ui/gtk3/candidatearea.vala View 1 2 3 4 5 6 5 chunks +76 lines, -20 lines 0 comments Download

Messages

Total messages: 11
fujiwara
7 years, 5 months ago (2017-01-18 02:42:05 UTC) #1
Peng
https://codereview.appspot.com/314280043/diff/1/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/1/ui/gtk3/candidatearea.vala#newcode126 ui/gtk3/candidatearea.vala:126: context.get(Gtk.StateFlags.SELECTED, "color", out color); Is it possible to construct ...
7 years, 5 months ago (2017-01-18 15:24:55 UTC) #2
fujiwara
https://codereview.appspot.com/314280043/diff/1/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/1/ui/gtk3/candidatearea.vala#newcode126 ui/gtk3/candidatearea.vala:126: context.get(Gtk.StateFlags.SELECTED, "color", out color); On 2017/01/18 15:24:55, Peng wrote: ...
7 years, 5 months ago (2017-01-23 12:13:16 UTC) #3
Peng
https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala#newcode124 ui/gtk3/candidatearea.vala:124: Gtk.StyleContext context = new Gtk.StyleContext(); How about only create ...
7 years, 5 months ago (2017-01-25 00:31:16 UTC) #4
fujiwara
https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala#newcode124 ui/gtk3/candidatearea.vala:124: Gtk.StyleContext context = new Gtk.StyleContext(); On 2017/01/25 00:31:16, Peng ...
7 years, 5 months ago (2017-01-25 03:21:23 UTC) #5
Peng
https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala#newcode124 ui/gtk3/candidatearea.vala:124: Gtk.StyleContext context = new Gtk.StyleContext(); On 2017/01/25 03:21:23, fujiwara ...
7 years, 5 months ago (2017-01-25 04:40:28 UTC) #6
fujiwara
https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/40001/ui/gtk3/candidatearea.vala#newcode124 ui/gtk3/candidatearea.vala:124: Gtk.StyleContext context = new Gtk.StyleContext(); On 2017/01/25 04:40:27, Peng ...
7 years, 5 months ago (2017-01-25 12:20:00 UTC) #7
Peng
LGMT with two comments. https://codereview.appspot.com/314280043/diff/100001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/100001/ui/gtk3/candidatearea.vala#newcode73 ui/gtk3/candidatearea.vala:73: m_style_context.set_parent(null); I thought the m_style_context ...
7 years, 5 months ago (2017-01-25 14:03:45 UTC) #8
Peng
On 2017/01/25 14:03:45, Peng wrote: > LGMT with two comments. > > https://codereview.appspot.com/314280043/diff/100001/ui/gtk3/candidatearea.vala > File ...
7 years, 5 months ago (2017-01-25 14:04:02 UTC) #9
fujiwara
https://codereview.appspot.com/314280043/diff/100001/ui/gtk3/candidatearea.vala File ui/gtk3/candidatearea.vala (right): https://codereview.appspot.com/314280043/diff/100001/ui/gtk3/candidatearea.vala#newcode73 ui/gtk3/candidatearea.vala:73: m_style_context.set_parent(null); On 2017/01/25 14:03:44, Peng wrote: > I thought ...
7 years, 5 months ago (2017-01-27 04:29:34 UTC) #10
fujiwara
7 years, 5 months ago (2017-01-27 05:43:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
bdc83bcbe3c9f07a267499c297db12c68af82fa2 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b