Add cc-month-row
This will be used to show month in the month selection grid
This commit is contained in:
parent
bc67d7dd29
commit
e23ff1befc
2 changed files with 56 additions and 0 deletions
55
panels/datetime/cc-month-row.ui
Normal file
55
panels/datetime/cc-month-row.ui
Normal file
|
@ -0,0 +1,55 @@
|
|||
<interface>
|
||||
<template class="GtkListItem">
|
||||
<property name="activatable">False</property>
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="margin-start">6</property>
|
||||
<property name="margin-end">6</property>
|
||||
<property name="margin-top">6</property>
|
||||
<property name="margin-bottom">6</property>
|
||||
|
||||
<!-- Month name -->
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="width-request">96</property>
|
||||
<style>
|
||||
<class name="title"/>
|
||||
</style>
|
||||
<binding name="label">
|
||||
<lookup name="string" type="GtkStringObject">
|
||||
<lookup name="item">GtkListItem</lookup>
|
||||
</lookup>
|
||||
</binding>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<!-- Check Image -->
|
||||
<child>
|
||||
<object class="GtkImage" id="select_image">
|
||||
<property name="visible" bind-source="GtkListItem" bind-property="selected" bind-flags="sync-create" />
|
||||
<property name="icon-name">object-select-symbolic</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<!-- Placeholder too keep check image space intact -->
|
||||
<child>
|
||||
<object class="AdwBin" id="image_placeholder">
|
||||
<property name="visible" bind-source="select_image" bind-flags="sync-create|invert-boolean" />
|
||||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</property>
|
||||
</template>
|
||||
|
||||
<object class="GtkSizeGroup">
|
||||
<property name="mode">both</property>
|
||||
<widgets>
|
||||
<widget name="select_image"/>
|
||||
<widget name="image_placeholder"/>
|
||||
</widgets>
|
||||
</object>
|
||||
|
||||
</interface>
|
|
@ -2,6 +2,7 @@
|
|||
<gresources>
|
||||
<gresource prefix="/org/gnome/control-center/datetime">
|
||||
<file preprocess="xml-stripblanks">cc-datetime-panel.ui</file>
|
||||
<file preprocess="xml-stripblanks">cc-month-row.ui</file>
|
||||
<file>backward</file>
|
||||
<file alias="bg.png">data/bg.png</file>
|
||||
<file alias="bg_dim.png">data/bg_dim.png</file>
|
||||
|
|
Loading…
Add table
Reference in a new issue