<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) 2022 Proton AG
  ~
  ~ This file is part of Proton Mail.
  ~
  ~ Proton Mail is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Proton Mail is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Proton Mail. If not, see https://www.gnu.org/licenses/.
  -->

<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/app_theme_toolbar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:title="@string/app_theme_title"/>

    <RadioGroup
        android:id="@+id/app_theme_radio_group"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/app_theme_toolbar"
        android:paddingStart="@dimen/padding_l"
        android:paddingEnd="@dimen/padding_m">

        <me.proton.core.presentation.ui.view.ProtonRadioButton
            android:id="@+id/app_theme_system_radio_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/app_theme_system"/>

        <me.proton.core.presentation.ui.view.ProtonRadioButton
            android:id="@+id/app_theme_light_radio_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/app_theme_light"
            tools:checked="true"/>

        <me.proton.core.presentation.ui.view.ProtonRadioButton
            android:id="@+id/app_theme_dark_radio_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/app_theme_dark"/>
    </RadioGroup>

</androidx.constraintlayout.widget.ConstraintLayout>
