[polari] urlPreview: Don't use 'dim-label' on loaded image



commit 0174da388aae8c6ed18bc43c6af12925d0be487e
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 3 04:28:41 2021 +0200

    urlPreview: Don't use 'dim-label' on loaded image
    
    For a long time now, the 'dim-label' style has affected the widget's
    opacity rather than its (foreground) color. That means it works for
    a full-color image just like it does for symbolics, but we really
    only want to dim the latter.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/227>

 src/urlPreview.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/urlPreview.js b/src/urlPreview.js
index 80bd36b4..a673f519 100644
--- a/src/urlPreview.js
+++ b/src/urlPreview.js
@@ -160,6 +160,7 @@ export default GObject.registerClass({
         try {
             const filename = await thumbnailer.getThumbnail(this.uri);
             this._image.set_from_file(filename);
+            this._image.get_style_context().remove_class('dim-label');
         } catch (e) {
             if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.NETWORK_UNREACHABLE)) {
                 this._imageLoaded = false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]