[tor-commits] [snowflake-mobile/master] Added font SourceCodePro

cohosh at torproject.org cohosh at torproject.org
Mon Aug 10 16:49:27 UTC 2020


commit 8d6706c6e661b054694a49f6acee37d4d2243bff
Author: Hashik Donthineni <HashikDonthineni at gmail.com>
Date:   Wed Aug 5 15:48:13 2020 +0530

    Added font SourceCodePro
---
 app/src/main/res/font/source_code_pro.ttf | Bin 0 -> 120548 bytes
 app/src/main/res/layout/fragment_main.xml |   8 ++++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app/src/main/res/font/source_code_pro.ttf b/app/src/main/res/font/source_code_pro.ttf
new file mode 100644
index 0000000..b2cff92
Binary files /dev/null and b/app/src/main/res/font/source_code_pro.ttf differ
diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml
index 6e59640..abcbe12 100644
--- a/app/src/main/res/layout/fragment_main.xml
+++ b/app/src/main/res/layout/fragment_main.xml
@@ -5,13 +5,16 @@
     android:layout_height="match_parent"
     tools:context=".fragments.MainFragment">
 
-
     <Switch
         android:id="@+id/start_button"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_centerInParent="true"
-        android:layout_margin="20dp"
+        android:layout_marginStart="20dp"
+        android:layout_marginTop="20dp"
+        android:layout_marginEnd="20dp"
+        android:layout_marginBottom="20dp"
+        android:fontFamily="@font/source_code_pro"
         android:text="@string/Snowflake_Off"
         android:textAlignment="textStart"
         android:textColor="@color/colorText"
@@ -23,6 +26,7 @@
         android:layout_height="wrap_content"
         android:layout_below="@id/start_button"
         android:layout_centerHorizontal="true"
+        android:fontFamily="@font/source_code_pro"
         android:gravity="center"
         android:paddingLeft="50dp"
         android:paddingTop="10dp"





More information about the tor-commits mailing list