2019-04-04 23:10:18 +00:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<interface>
|
2020-04-27 01:59:28 +00:00
|
|
|
|
<menu id="gear_menu">
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Inspector</attribute>
|
|
|
|
|
<attribute name="action">app.inspector</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_About GTK Icon Browser</attribute>
|
|
|
|
|
<attribute name="action">app.about</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
</menu>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<template class="IconBrowserWindow" parent="GtkApplicationWindow">
|
2019-02-07 08:23:02 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="devel"/>
|
|
|
|
|
</style>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<property name="title" translatable="yes">Icon Browser</property>
|
2016-12-29 00:43:18 +00:00
|
|
|
|
<property name="default-width">1024</property>
|
|
|
|
|
<property name="default-height">768</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child type="titlebar">
|
|
|
|
|
<object class="GtkHeaderBar" id="header">
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<child type="title">
|
|
|
|
|
<object class="GtkBox">
|
|
|
|
|
<style>
|
|
|
|
|
<class name="linked"/>
|
|
|
|
|
</style>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkRadioButton" id="normal_radio">
|
|
|
|
|
<property name="label" translatable="yes">Normal</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkRadioButton" id="symbolic_radio">
|
|
|
|
|
<property name="label" translatable="yes">Symbolic</property>
|
|
|
|
|
<property name="group">normal_radio</property>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<signal name="notify::active" handler="symbolic_toggled" swapped="yes" after="yes"/>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2020-04-27 01:59:28 +00:00
|
|
|
|
<child type="end">
|
|
|
|
|
<object class="GtkMenuButton" id="gear_menu_button">
|
|
|
|
|
<property name="valign">center</property>
|
|
|
|
|
<property name="menu-model">gear_menu</property>
|
|
|
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2019-03-27 17:20:18 +00:00
|
|
|
|
<child type="end">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<object class="GtkToggleButton" id="search">
|
|
|
|
|
<style>
|
|
|
|
|
<class name="image-button"/>
|
|
|
|
|
</style>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkImage" id="search-icon">
|
|
|
|
|
<property name="icon-name">edit-find-symbolic</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<object class="GtkBox">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<object class="GtkScrolledWindow">
|
|
|
|
|
<property name="hscrollbar-policy">never</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkListView">
|
2020-08-22 15:30:30 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="navigation-sidebar" />
|
|
|
|
|
</style>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkSingleSelection" id="context_model">
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GListStore" id="context_store">
|
|
|
|
|
<property name="item-type">IbContext</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="factory">
|
|
|
|
|
<object class="GtkBuilderListItemFactory">
|
|
|
|
|
<property name="bytes">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
|
|
|
|
<template class="GtkListItem">
|
|
|
|
|
<property name="child">
|
|
|
|
|
<object class="GtkLabel">
|
|
|
|
|
<property name="xalign">0</property>
|
|
|
|
|
<binding name="label">
|
|
|
|
|
<lookup name="name" type="IbContext">
|
|
|
|
|
<lookup name="item">GtkListItem</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
|
|
|
|
</interface>
|
|
|
|
|
]]>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-12-02 15:09:21 +00:00
|
|
|
|
<child>
|
2016-12-14 14:55:55 +00:00
|
|
|
|
<object class="GtkSeparator">
|
|
|
|
|
<property name="orientation">vertical</property>
|
2014-12-02 15:09:21 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<object class="GtkBox" id="content_box">
|
|
|
|
|
<property name="orientation">vertical</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<object class="GtkSearchBar" id="searchbar">
|
2014-11-01 02:28:17 +00:00
|
|
|
|
<property name="search-mode-enabled" bind-source="search" bind-property="active" bind-flags="bidirectional"/>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkSearchEntry" id="searchentry">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkScrolledWindow" id="sw">
|
2020-02-25 23:25:52 +00:00
|
|
|
|
<property name="hexpand">1</property>
|
|
|
|
|
<property name="vexpand">1</property>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<property name="hscrollbar-policy">never</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<object class="GtkGridView" id="list">
|
|
|
|
|
<signal name="activate" handler="item_activated"/>
|
|
|
|
|
<property name="single-click-activate">1</property>
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkNoSelection">
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GtkFilterListModel" id="icon_filter_model">
|
|
|
|
|
<property name="filter">
|
|
|
|
|
<object class="GtkEveryFilter">
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkStringFilter">
|
|
|
|
|
<property name="expression">
|
|
|
|
|
<lookup name="name" type="IbIcon"/>
|
|
|
|
|
</property>
|
|
|
|
|
<binding name="search">
|
|
|
|
|
<lookup name="text" type="GtkSearchEntry">
|
|
|
|
|
searchentry
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkStringFilter">
|
|
|
|
|
<property name="ignore-case">0</property>
|
|
|
|
|
<property name="match-mode">exact</property>
|
|
|
|
|
<property name="expression">
|
|
|
|
|
<lookup name="context" type="IbIcon"/>
|
|
|
|
|
</property>
|
|
|
|
|
<binding name="search">
|
|
|
|
|
<lookup name="id" type="IbContext">
|
|
|
|
|
<lookup name="selected-item" type="GtkSingleSelection">
|
|
|
|
|
context_model
|
|
|
|
|
</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="model">
|
|
|
|
|
<object class="GListStore" id="icon_store">
|
|
|
|
|
<property name="item-type">IbIcon</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
</property>
|
|
|
|
|
<property name="factory">
|
|
|
|
|
<object class="GtkBuilderListItemFactory">
|
|
|
|
|
<property name="bytes">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
|
|
|
|
<template class="GtkListItem">
|
|
|
|
|
<property name="child">
|
|
|
|
|
<object class="GtkBox">
|
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkImage">
|
|
|
|
|
<property name="pixel-size">48</property>
|
|
|
|
|
<binding name="icon-name">
|
|
|
|
|
<lookup name="name" type="IbIcon">
|
|
|
|
|
<lookup name="item">GtkListItem</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkLabel">
|
|
|
|
|
<binding name="label">
|
|
|
|
|
<lookup name="name" type="IbIcon">
|
|
|
|
|
<lookup name="item">GtkListItem</lookup>
|
|
|
|
|
</lookup>
|
|
|
|
|
</binding>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
|
|
|
|
</interface>
|
|
|
|
|
]]>
|
|
|
|
|
</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
</object>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</template>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<object class="GtkDialog" id="details">
|
2018-01-18 22:46:58 +00:00
|
|
|
|
<property name="modal">1</property>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<property name="use-header-bar">1</property>
|
2018-01-18 22:46:58 +00:00
|
|
|
|
<property name="resizable">0</property>
|
2017-12-31 17:57:39 +00:00
|
|
|
|
<property name="hide-on-close">1</property>
|
2019-01-24 21:11:45 +00:00
|
|
|
|
<child internal-child="content_area">
|
2014-07-27 07:32:10 +00:00
|
|
|
|
<object class="GtkBox">
|
2019-04-17 00:59:57 +00:00
|
|
|
|
<property name="orientation">vertical</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkGrid">
|
2020-02-26 01:57:20 +00:00
|
|
|
|
<property name="margin-start">10</property>
|
|
|
|
|
<property name="margin-end">10</property>
|
|
|
|
|
<property name="margin-top">10</property>
|
|
|
|
|
<property name="margin-bottom">10</property>
|
2015-11-28 20:00:29 +00:00
|
|
|
|
<property name="row-spacing">18</property>
|
|
|
|
|
<property name="column-spacing">18</property>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<property name="halign">center</property>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2017-08-02 13:50:19 +00:00
|
|
|
|
<object class="GtkImage" id="image1">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<object class="GtkImage" id="image2">
|
2017-08-02 13:50:19 +00:00
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">1</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2017-08-02 13:50:19 +00:00
|
|
|
|
<object class="GtkImage" id="image3">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">2</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2017-08-02 13:50:19 +00:00
|
|
|
|
<object class="GtkImage" id="image4">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">3</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2017-08-02 13:50:19 +00:00
|
|
|
|
<object class="GtkImage" id="image5">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">4</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<child>
|
2017-10-19 14:13:47 +00:00
|
|
|
|
<object class="GtkImage" id="image6">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">5</property>
|
|
|
|
|
<property name="row">1</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkImage" id="image7">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">6</property>
|
|
|
|
|
<property name="row">1</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkImage" id="image8">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">end</property>
|
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">7</property>
|
|
|
|
|
<property name="row">1</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<child>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<object class="GtkLabel" id="label1">
|
|
|
|
|
<property name="halign">center</property>
|
2015-11-28 19:48:40 +00:00
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">8×8</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">0</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<object class="GtkLabel" id="label2">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<property name="halign">center</property>
|
2015-11-28 19:48:40 +00:00
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">16×16</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">1</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<object class="GtkLabel" id="label3">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<property name="halign">center</property>
|
2015-11-28 19:48:40 +00:00
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">18×18</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">2</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<object class="GtkLabel" id="label4">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<property name="halign">center</property>
|
2015-11-28 19:48:40 +00:00
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">24×24</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">3</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<object class="GtkLabel" id="label5">
|
2014-06-24 22:36:29 +00:00
|
|
|
|
<property name="halign">center</property>
|
2015-11-28 19:48:40 +00:00
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">32×32</property>
|
2014-07-27 11:44:41 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">4</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<object class="GtkLabel" id="label6">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">baseline</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<property name="label">48×48</property>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">5</property>
|
|
|
|
|
<property name="row">2</property>
|
2019-04-04 23:10:18 +00:00
|
|
|
|
</layout>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkLabel" id="label7">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">baseline</property>
|
|
|
|
|
<property name="label">64×64</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">6</property>
|
|
|
|
|
<property name="row">2</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<child>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
<object class="GtkLabel" id="label8">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">baseline</property>
|
|
|
|
|
<property name="label">scalable</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="dim-label"/>
|
|
|
|
|
</style>
|
|
|
|
|
<layout>
|
2020-08-02 18:13:14 +00:00
|
|
|
|
<property name="column">7</property>
|
|
|
|
|
<property name="row">2</property>
|
IconTheme: Simplify icon scaling
We had a pretty complex setup where we tried to avoid scaling up themes from dirs
that specified a size. However, not only was it very complex, but it didn't quite
work with window scales, because when using e.g. a size 32 directory for 16@2x
the dir size is wrong anyway. Additionally it turns out most code either picks
an existing icon size, or uses the FORCE_SIZE flags, so it doesn't seem
like a useful behaviour.
This change drops the FORCE_SIZE flags, and always scales
icons. Additionally it moves the scaling of the icon to rendering,
which seems more modern, and allows us to (later) share icons loaded
for different sizes that happened to use the same source file (at
different scales).
Note that this changes the behaviour of
gtk_icon_paintable_download_texture() is it now returns the unscaled
source icon. However, ignore thats, as I plan to remove this function
and replace it with a way to render a paintable to a cairo-surface
instead.
2020-02-05 14:47:23 +00:00
|
|
|
|
</layout>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2017-10-18 11:00:41 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="label" translatable="yes">Copy to Clipboard</property>
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">center</property>
|
2020-02-26 01:57:20 +00:00
|
|
|
|
<property name="margin-start">20</property>
|
|
|
|
|
<property name="margin-end">20</property>
|
|
|
|
|
<property name="margin-top">20</property>
|
|
|
|
|
<property name="margin-bottom">20</property>
|
2017-10-18 11:00:41 +00:00
|
|
|
|
<signal name="clicked" handler="copy_to_clipboard"/>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
<child>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<object class="GtkLabel" id="description">
|
2020-02-26 01:57:20 +00:00
|
|
|
|
<property name="margin-start">10</property>
|
|
|
|
|
<property name="margin-end">10</property>
|
|
|
|
|
<property name="margin-top">10</property>
|
|
|
|
|
<property name="margin-bottom">10</property>
|
2018-01-18 22:46:58 +00:00
|
|
|
|
<property name="wrap">1</property>
|
2017-08-07 21:33:42 +00:00
|
|
|
|
<property name="max-width-chars">60</property>
|
|
|
|
|
<property name="valign">start</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2014-07-27 07:32:10 +00:00
|
|
|
|
</object>
|
2014-06-24 22:36:29 +00:00
|
|
|
|
</interface>
|
2020-06-08 18:25:54 +00:00
|
|
|
|
|