The `.content` style class is deprecated in favor of the `.boxed-list` style class, which is named after the design pattern it's used for.
143 lines
5.1 KiB
XML
143 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<template class="NetDeviceWifi" parent="AdwBin">
|
|
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="valign">start</property>
|
|
<property name="vhomogeneous">False</property>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="child">
|
|
<object class="GtkBox" id="listbox_box">
|
|
<property name="orientation">vertical</property>
|
|
<property name="height-request">140</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Wi-Fi Hotspot deails -->
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="child">
|
|
<object class="GtkListBox" id="hotspot_box">
|
|
<property name="selection-mode">none</property>
|
|
<style>
|
|
<class name="boxed-list" />
|
|
</style>
|
|
<child>
|
|
<object class="CcListRow" id="hotspot_name_row">
|
|
<property name="activatable">False</property>
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Network Name</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="CcListRow" id="hotspot_security_row">
|
|
<property name="activatable">False</property>
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Security type</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="CcListRow" id="hotspot_password_row">
|
|
<property name="activatable">False</property>
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Password</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
</template>
|
|
|
|
<!-- Center widget -->
|
|
<object class="GtkBox" id="center_box">
|
|
<property name="orientation">vertical</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<object class="GtkLabel" id="title_label">
|
|
<property name="label" translatable="yes">Wi-Fi</property>
|
|
<style>
|
|
<class name="title" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_label">
|
|
<style>
|
|
<class name="subtitle" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
<!-- Box with the On/Off switch + menu button -->
|
|
<object class="GtkBox" id="header_box">
|
|
<property name="spacing">6</property>
|
|
<property name="halign">end</property>
|
|
<child>
|
|
<object class="GtkSwitch" id="device_off_switch">
|
|
<property name="valign">center</property>
|
|
<signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Turn Wi-Fi off</property>
|
|
</accessibility>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton" id="header_button">
|
|
<property name="popover">header_button_popover</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="icon_name">view-more-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
<!-- Menu Popover -->
|
|
<object class="GtkPopover" id="header_button_popover">
|
|
<style>
|
|
<class name="menu" />
|
|
</style>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="spacing">6</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkButton" id="connect_hidden_button">
|
|
<property name="label" translatable="yes">_Connect to Hidden Network…</property>
|
|
<property name="use_underline">True</property>
|
|
<signal name="clicked" handler="connect_hidden_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="start_hotspot_button">
|
|
<property name="label" translatable="yes">_Turn On Wi-Fi Hotspot…</property>
|
|
<property name="use_underline">True</property>
|
|
<signal name="clicked" handler="start_hotspot_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">_Known Wi-Fi Networks</property>
|
|
<property name="use_underline">True</property>
|
|
<signal name="clicked" handler="history_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|