<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<!-- TODO(crbug.com/439911511): Legacy Page zoom preference layout. -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    style="@style/PreferenceLayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <!-- PAGE ZOOM-->
    <TextView
        style="@style/PreferenceTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/page_zoom_title" />

    <TextView
        style="@style/PreferenceSummary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/page_zoom_summary" />

    <TextView
        android:id="@+id/page_zoom_current_value_text"
        style="@style/TextAppearance.TextSmall.Secondary"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/page_zoom_view_level_padding_large"
        android:textAlignment="center" />

    <include layout="@layout/page_zoom_slider" />

    <!-- TEXT SIZE CONTRAST-->
    <LinearLayout
        android:id="@+id/text_size_contrast_section"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:visibility="gone">
        <TextView
            android:id="@+id/text_size_contrast_title"
            style="@style/PreferenceTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/text_size_contrast_title" />

        <TextView
            android:id="@+id/text_size_contrast_summary"
            style="@style/PreferenceSummary"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/text_size_contrast_summary" />

        <TextView
            android:id="@+id/text_size_contrast_current_value_text"
            style="@style/TextAppearance.TextSmall.Secondary"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="@dimen/page_zoom_view_level_padding_large"
            android:textAlignment="center" />

        <include
            android:id="@+id/text_size_contrast_layout_container"
            layout="@layout/text_size_contrast_slider"/>
    </LinearLayout>

    <!-- PREVIEW-->
    <TextView
        style="@style/PreferenceTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/page_zoom_view_level_margin"
        android:text="@string/page_zoom_preview_title" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/rounded_rectangle_surface_container_low"
        android:layout_marginTop="10dp"
        android:padding="@dimen/page_zoom_view_level_padding_large"
        android:orientation="vertical" >

        <ImageView
            android:id="@+id/page_zoom_preview_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/ic_domain"
            android:importantForAccessibility="no"
            app:tint="@macro/default_icon_color_accent1" />

        <TextView
            android:id="@+id/page_zoom_preview_large_text"
            style="@style/TextAppearance.TextLarge.Primary"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/page_zoom_view_level_margin"
            android:layout_marginBottom="@dimen/page_zoom_view_level_margin"
            android:text="@string/page_zoom_preview_text_title" />

        <TextView
            android:id="@+id/page_zoom_preview_medium_text"
            style="@style/TextAppearance.TextMedium.Primary"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/page_zoom_view_level_margin"
            android:text="@string/page_zoom_preview_text_summary" />

        <TextView
            android:id="@+id/page_zoom_preview_small_text"
            style="@style/TextAppearance.TextSmall.Secondary"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/page_zoom_preview_text_item" />


    </LinearLayout>

</LinearLayout>
