Skip to content

Commit

Permalink
feat(theme-settings): Download patterns for themes
Browse files Browse the repository at this point in the history
  • Loading branch information
yuraiz committed Jun 20, 2023
1 parent a0710b8 commit 0f2e8c5
Show file tree
Hide file tree
Showing 8 changed files with 325 additions and 97 deletions.
41 changes: 19 additions & 22 deletions data/resources/ui/content-chat-history.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<template class="ContentChatHistory" parent="AdwBin">
<child>
<object class="AdwToolbarView">
<property name="top-bar-style">raised</property>
<property name="bottom-bar-style">raised</property>
<child type="top">
<object class="GtkOverlay">
<child>
Expand Down Expand Up @@ -87,29 +89,26 @@
</object>
</child>
<child>
<object class="ContentBackground" id="background">
<property name="vexpand">True</property>
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="hscrollbar-policy">never</property>
<property name="child">
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="hscrollbar-policy">never</property>
<object class="AdwClampScrollable">
<property name="maximum-size">800</property>
<property name="tightening-threshold">600</property>
<property name="vscroll-policy">natural</property>
<property name="child">
<object class="AdwClampScrollable">
<property name="maximum-size">800</property>
<property name="tightening-threshold">600</property>
<property name="vscroll-policy">natural</property>
<property name="child">
<object class="GtkListView" id="list_view">
<property name="reversed">True</property>
<style>
<class name="chat-history"/>
</style>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<object class="GtkListView" id="list_view">
<property name="reversed">True</property>
<style>
<class name="chat-history"/>
</style>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
<property name="activatable">False</property>
<template class="GtkListItem">
<property name="activatable">False</property>
<property name="child">
<object class="ContentChatHistoryRow">
<binding name="item">
Expand All @@ -119,9 +118,7 @@
</property>
</template>
</interface>
]]></property>
</object>
</property>
]]></property>
</object>
</property>
</object>
Expand Down
39 changes: 19 additions & 20 deletions data/resources/ui/content.blp
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,33 @@ template $Content : Adw.Bin {

styles ["view"]

Stack stack {
Adw.ToolbarView unselected_chat_view {
[top]
Overlay {
$ContentBackground {
child: Stack stack {
Adw.ToolbarView unselected_chat_view {
extend-content-to-top-edge: true;

[top]
Adw.HeaderBar {
show-start-title-buttons: false;

[title]
Adw.WindowTitle {}
}

[overlay]
$ComponentsSnow snow {
sensitive: false;
}
content: Label {
styles ["event-row"]

halign: center;
valign: center;

label: _("Select a chat to start messaging.");
};
}

content: Adw.StatusPage {
vexpand: true;
icon-name: "user-available-symbolic";
title: _("No Chat Selected");
description: _("Select a chat to start messaging.");
};
}

$ContentChatHistory chat_history {
compact: bind template.compact;
chat: bind template.chat;
}
$ContentChatHistory chat_history {
compact: bind template.compact;
chat: bind template.chat;
}
};
}
}
Loading

0 comments on commit 0f2e8c5

Please sign in to comment.