ui: replace attributes with css style

This commit is contained in:
Peter Eisenmann
2022-03-26 13:25:27 +01:00
parent ced0f4f539
commit 761f254aee
16 changed files with 66 additions and 85 deletions

View File

@@ -4,7 +4,6 @@
<requires lib="libadwaita" version="1.0"/>
<template class="ConfirmQuitPopup" parent="AdwWindow">
<property name="destroy-with-parent">True</property>
<property name="type-hint">dialog</property>
<property name="content">
<object class="GtkWindowHandle">
<child>
@@ -29,9 +28,9 @@
<property name="justify">center</property>
<property name="wrap">1</property>
<property name="max-width-chars">45</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -100,9 +100,6 @@
<child>
<object class="GtkStack" id="main_stack">
<property name="transition-type">slide-left-right</property>
<child>
<placeholder/>
</child>
</object>
</child>
</object>

View File

@@ -15,18 +15,18 @@
<object class="GtkLabel">
<property name="label" translatable="1" comments="Followed by a disk or partition name">This will delete all data on</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="disk_label">
<property name="wrap">1</property>
<property name="wrap-mode">word-char</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-3"/>
</style>
</object>
</child>
</object>

View File

@@ -17,9 +17,9 @@
<property name="label" translatable="1" comments="Explanation for disk selection page.">Select Drive for Installation</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child type="end">
@@ -51,9 +51,9 @@
<object class="GtkLabel" id="disk_label">
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</property>
</object>
@@ -125,9 +125,9 @@
<property name="width-chars">5</property>
<property name="max-width-chars">7</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
@@ -141,9 +141,6 @@
<property name="label" translatable="1" comments="Label to go back to overview of all disks">Use Whole Disk</property>
<property name="wrap">1</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="normal"></attribute>
</attributes>
</object>
</child>
<child>
@@ -152,9 +149,9 @@
<property name="width-chars">5</property>
<property name="max-width-chars">7</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>

View File

@@ -12,9 +12,9 @@
<child>
<object class="GtkLabel">
<property name="label" translatable="1" comments="Informative label after successful installation">Installation complete</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -13,9 +13,9 @@
<property name="justify">center</property>
<property name="wrap">1</property>
<property name="max-width-chars">50</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -13,9 +13,9 @@
<child>
<object class="GtkLabel">
<property name="label" translatable="1" comments="Simple label used during Installation">Installing</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -10,9 +10,9 @@
<property name="label" translatable="1" comments="Explanation for keyboard layout selection page.">Select Keyboard Layout</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -65,9 +65,6 @@
<property name="height-request">64</property>
<property name="valign">end</property>
<property name="orientation">vertical</property>
<child>
<placeholder/>
</child>
<style>
<class name="bottom-gradient"/>
</style>

View File

@@ -20,9 +20,9 @@
<property name="label" translatable="1" comments="Above list of continents and countries">Adapt to Location</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>
@@ -106,9 +106,9 @@
<property name="wrap">1</property>
<property name="max-width-chars">60</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
@@ -161,9 +161,9 @@
<property name="label" translatable="1" comments="Above list of continents and countries">Select Location</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</property>
</object>
@@ -177,9 +177,9 @@
<property name="label" translatable="1" comments="Above list of format locales">Select Region</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</property>
</object>

View File

@@ -15,9 +15,9 @@
<object class="GtkLabel">
<property name="vexpand">1</property>
<property name="label" translatable="1" comments="Shown when restarting system after installation.">Restarting</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -10,9 +10,9 @@
<property name="label" translatable="1" comments="Informative label above a list of software that can be selected for installation">Select Additional Software to Install</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -10,9 +10,9 @@
<property name="label" translatable="1" comments="Explanation for disk selection page.">Enter Account Information</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>

View File

@@ -33,9 +33,9 @@
<property name="label" translatable="1" comments="Shown for partitions that are not big enough to be installed on">Not enough space for installation</property>
<property name="wrap">1</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
</property>
</object>
@@ -104,9 +104,9 @@
<property name="valign">start</property>
<property name="ellipsize">start</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
<layout>
<property name="column">1</property>
<property name="row">1</property>
@@ -118,9 +118,9 @@
<property name="width-chars">5</property>
<property name="max-width-chars">7</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
<style>
<class name="dim-label"/>
</style>
<layout>
<property name="column">0</property>
<property name="row">0</property>

View File

@@ -33,9 +33,6 @@
<property name="label" translatable="1" comments="Followed by a list of requirements">The disk requires:</property>
<property name="wrap">1</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
</object>
</child>
<child>
@@ -51,9 +48,6 @@
• EFI partition</property>
<property name="wrap">1</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
</object>
</property>
</object>
@@ -66,9 +60,6 @@
<property name="label" translatable="1" comments="Technical terms, the abbreviations should not be translated"> • BIOS boot partition</property>
<property name="wrap">1</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="light"></attribute>
</attributes>
</object>
</property>
</object>

View File

@@ -29,9 +29,9 @@
<property name="valign">end</property>
<property name="ellipsize">end</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"></attribute>
</attributes>
<style>
<class name="title-2"/>
</style>
</object>
</child>
<child>