Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7481ec5e authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Theme app according to our palette

parent f426a639
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,5 +36,7 @@ android_app {
        "androidx.legacy_legacy-support-v4",
        "androidx.gridlayout_gridlayout",
        "androidx.recyclerview_recyclerview",
        "androidx.webkit_webkit",
        "elib",
    ],
}
+1 −1
Original line number Diff line number Diff line
<html>
<head>
<meta name="viewport" content="width=device-width">
<style> body { font-family: sans-serif; } pre { background-color: #eeeeee; padding: 1em; white-space: pre-wrap; word-wrap: break-word; } </style>
<style> body { font-family: sans-serif; } pre { background-color: #FFFFFF; padding: 1em; white-space: pre-wrap; word-wrap: break-word; } </style>
</head>
<body>
<h3>Notices for files:</h3>
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright ECORP SAS 2022
  ~ This program 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.
  ~
  ~ This program 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 this program.  If not, see <https://www.gnu.org/licenses/>.
  -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="2dp"
    android:height="18dp"
    android:viewportWidth="2"
    android:viewportHeight="18">
  <path
      android:pathData="M2,18l-2,-0l-0,-18l2,-0z"
      android:fillColor="?android:attr/textColorPrimary"/>
</vector>
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
    android:viewportHeight="24"
    android:viewportWidth="24">
    <path
        android:fillColor="@color/pad_button_text_color"
        android:fillColor="@color/calculator_accent_color"
        android:pathData="M19,15.59L17.59,17L14,13.41L10.41,17L9,15.59L12.59,12L9,8.41
        L10.41,7L14,10.59L17.59,7L19,8.41L15.41,12L19,15.59M22,3A2,2 0 0,1 24,5V19A2,2 0 0,1 22,21
        H7C6.31,21 5.77,20.64 5.41,20.11L0,12L5.41,3.88C5.77,3.35 6.31,3 7,3H22M22,5
+208 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2015 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->

<androidx.gridlayout.widget.GridLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/pad_advanced"
    style="@style/PadLayoutStyle.Advanced"
    android:background="@color/pad_advanced_background_color"
    app:rowCount="5"
    app:columnCount="3">

    <com.android.calculator2.HapticButton
        android:id="@+id/toggle_inv"
        style="@style/PadButtonStyle.Advanced.Text"
        android:background="@drawable/pad_button_inverse_background"
        android:contentDescription="@string/desc_inv_off"
        android:text="@string/inv"
        app:layout_row="0"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/toggle_mode"
        style="@style/PadButtonStyle.Advanced.Text"
        android:contentDescription="@string/desc_switch_deg"
        android:text="@string/mode_deg"
        app:layout_row="0"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/op_pct"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_op_pct"
        android:text="@string/op_pct"
        app:layout_row="0"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_sin"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_sin"
        android:text="@string/fun_sin"
        app:layout_row="1"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_arcsin"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_arcsin"
        android:fontFamily="sans-serif-medium"
        android:text="@string/fun_arcsin"
        android:visibility="gone"
        app:layout_row="1"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_cos"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_cos"
        android:text="@string/fun_cos"
        app:layout_row="1"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_arccos"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_arccos"
        android:fontFamily="sans-serif-medium"
        android:text="@string/fun_arccos"
        android:visibility="gone"
        app:layout_row="1"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_tan"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_tan"
        android:text="@string/fun_tan"
        app:layout_row="1"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_arctan"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_arctan"
        android:fontFamily="sans-serif-medium"
        android:text="@string/fun_arctan"
        android:visibility="gone"
        app:layout_row="1"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_ln"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_ln"
        android:text="@string/fun_ln"
        app:layout_row="2"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_exp"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_exp"
        android:fontFamily="sans-serif-medium"
        android:text="@string/fun_exp"
        android:visibility="gone"
        app:layout_row="2"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_log"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_log"
        android:text="@string/fun_log"
        app:layout_row="2"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/fun_10pow"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_fun_10pow"
        android:fontFamily="sans-serif-medium"
        android:text="@string/fun_10pow"
        android:visibility="gone"
        app:layout_row="2"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/op_fact"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_op_fact"
        android:text="@string/op_fact"
        app:layout_row="2"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/const_pi"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_const_pi"
        android:text="@string/const_pi"
        app:layout_row="3"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/const_e"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_const_e"
        android:text="@string/const_e"
        app:layout_row="3"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/op_pow"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_op_pow"
        android:text="@string/op_pow"
        app:layout_row="3"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/lparen"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_lparen"
        android:text="@string/lparen"
        app:layout_row="4"
        app:layout_column="0" />

    <com.android.calculator2.HapticButton
        android:id="@+id/rparen"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_rparen"
        android:text="@string/rparen"
        app:layout_row="4"
        app:layout_column="1" />

    <com.android.calculator2.HapticButton
        android:id="@+id/op_sqrt"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_op_sqrt"
        android:text="@string/op_sqrt"
        app:layout_row="4"
        app:layout_column="2" />

    <com.android.calculator2.HapticButton
        android:id="@+id/op_sqr"
        style="@style/PadButtonStyle.Advanced"
        android:contentDescription="@string/desc_op_sqr"
        android:fontFamily="sans-serif-medium"
        android:text="@string/op_sqr"
        android:visibility="gone"
        app:layout_row="4"
        app:layout_column="2" />

</androidx.gridlayout.widget.GridLayout>
Loading