summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-14 02:49:31 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-14 02:49:31 +0000
commitf931976e88d27a020a1a423522fd9455a920be36 (patch)
tree723e66d6d1b00607d14c673ca1ea42cc62557064 /chrome/browser/chromeos
parentc823ee69a6ede271c9fcf8ce60d9ad62771a5d95 (diff)
downloadchromium_src-f931976e88d27a020a1a423522fd9455a920be36.zip
chromium_src-f931976e88d27a020a1a423522fd9455a920be36.tar.gz
chromium_src-f931976e88d27a020a1a423522fd9455a920be36.tar.bz2
Make the font size in the candidate window bigger.
This is to make Chinese characters more readable. BUG=chromium-os:2904 TEST=manually Review URL: http://codereview.chromium.org/2070002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r--chrome/browser/chromeos/text_input/candidate_window.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/text_input/candidate_window.cc b/chrome/browser/chromeos/text_input/candidate_window.cc
index 91aed20..047e42e 100644
--- a/chrome/browser/chromeos/text_input/candidate_window.cc
+++ b/chrome/browser/chromeos/text_input/candidate_window.cc
@@ -403,10 +403,12 @@ void CandidateView::Init() {
kHorizontalShortcutLabelInsets);
views::View* wrapped_shortcut_label =
WrapWithPadding(shortcut_label_, insets);
- // Make the font bold.
- gfx::Font font = shortcut_label_->font();
- gfx::Font bold_font = font.DeriveFont(0, gfx::Font::BOLD);
- shortcut_label_->SetFont(bold_font);
+ // We'll use a bigger font size, so Chinese characters are more readable
+ // in the candidate window.
+ const int kFontSizeDelta = 1; // One size bigger.
+ // Make the font bold, and change the size.
+ shortcut_label_->SetFont(
+ shortcut_label_->font().DeriveFont(kFontSizeDelta, gfx::Font::BOLD));
// TODO(satorux): Maybe we need to use language specific fonts for
// candidate_label, like Chinese font for Chinese input method?
@@ -426,6 +428,10 @@ void CandidateView::Init() {
} else {
candidate_label_ = new views::Label;
}
+ // Change the font size.
+ candidate_label_->SetFont(
+ candidate_label_->font().DeriveFont(kFontSizeDelta));
+
candidate_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
// Initialize the column set with two columns.