gnome-control-center/panels/common/cc-illustrated-row.ui
Marco Melorio 2fc0e26d79 illustrated-row: Use correct property to scale down image
This widget was using halign instead of content-fit to scale down the
image to the correct resolution, and it was making the image blurry in
some cases.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2382.
2023-10-10 12:39:39 +00:00

34 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcIllustratedRow" parent="CcVerticalRow">
<child>
<object class="GtkEventControllerMotion">
<signal name="enter" handler="on_picture_hover_cb" object="CcIllustratedRow" swapped="yes"/>
<signal name="leave" handler="on_picture_leave_cb" object="CcIllustratedRow" swapped="yes"/>
</object>
</child>
<child type="content">
<object class="GtkBox" id="picture_box">
<property name="visible">False</property>
<property name="hexpand">True</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<style>
<class name="frame" />
<class name="background" />
</style>
<child>
<object class="GtkPicture" id="picture">
<property name="hexpand">True</property>
<property name="content-fit">scale-down</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<property name="height-request">128</property>
</object>
</child>
</object>
</child>
</template>
</interface>