From de814752d6918a0ff9c747c96edb88a351add118 Mon Sep 17 00:00:00 2001 From: raresvis Date: Mon, 3 Jul 2017 22:35:21 +0300 Subject: [PATCH] search.js: Vertically center the provider icon --- data/theme/gnome-shell-high-contrast.css | 4 ++++ data/theme/gnome-shell.css | 5 +++++ js/ui/search.js | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css index e32bacb0d..157f5faa9 100644 --- a/data/theme/gnome-shell-high-contrast.css +++ b/data/theme/gnome-shell-high-contrast.css @@ -1186,6 +1186,10 @@ StScrollBar { font-size: 1.5em; color: #e2e2df; } +.list-search-result-provider { + color: #e2e2df; + margin-top: 0.24em; } + .list-search-result-description { color: #cacac4; margin-left: 30px; } diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 007741dde..c6e374b17 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1187,6 +1187,11 @@ StScrollBar { .list-search-result-title { color: #e2e2df; } +.list-search-result-provider { + color: #e2e2df; + margin-top: 0.24em; + } + .list-search-result-description { color: rgba(202, 202, 196, 0.5); margin-left: 30px; } diff --git a/js/ui/search.js b/js/ui/search.js index b2f2e31bc..0beda1eea 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -749,8 +749,8 @@ const ProviderInfo = new Lang.Class({ vertical: true }); let providerNameLabel = new St.Label({ - style_class: 'list-search-result-title', - text: provider.appInfo.get_name() }); + style_class: 'list-search-result-provider', + text: provider.appInfo.get_name() }); this._remainingResultsLabel = new St.Label({ style_class: 'list-search-result-title' }); @@ -770,7 +770,7 @@ const ProviderInfo = new Lang.Class({ this._content.add(icon, { x_fill: false, y_fill: false, x_align: St.Align.START, - y_align: St.Align.START }); + y_align: St.Align.MIDDLE }); this._content.add(this._providerDetails, { x_fill: false, y_fill: false, x_align: St.Align.START,