Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
f55e0af0
Commit
f55e0af0
authored
Oct 27, 2018
by
Sajal Narang
Committed by
GitHub
Oct 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #234 from wncc/dark
Fix colors in dark theme
parents
305b983b
09b3d7dd
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
28 deletions
+40
-28
app/src/main/res/layout/blog_post_card.xml
app/src/main/res/layout/blog_post_card.xml
+1
-1
app/src/main/res/layout/fragment_about.xml
app/src/main/res/layout/fragment_about.xml
+3
-3
app/src/main/res/layout/fragment_body.xml
app/src/main/res/layout/fragment_body.xml
+3
-3
app/src/main/res/layout/fragment_event.xml
app/src/main/res/layout/fragment_event.xml
+17
-11
app/src/main/res/layout/mess_menu_card.xml
app/src/main/res/layout/mess_menu_card.xml
+4
-4
app/src/main/res/layout/news_article_card.xml
app/src/main/res/layout/news_article_card.xml
+5
-5
app/src/main/res/values/attrs.xml
app/src/main/res/values/attrs.xml
+2
-0
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+5
-1
No files found.
app/src/main/res/layout/blog_post_card.xml
View file @
f55e0af0
...
@@ -24,5 +24,5 @@
...
@@ -24,5 +24,5 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:layout_marginTop=
"4dp"
android:textColor=
"?attr/themeColorInverse"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"
@color/colorPrimary
"
/>
android:textColorLink=
"
?attr/urlColor
"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_about.xml
View file @
f55e0af0
...
@@ -638,7 +638,7 @@
...
@@ -638,7 +638,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:linksClickable=
"true"
android:linksClickable=
"true"
android:text=
"@string/django_api"
android:text=
"@string/django_api"
android:textColorLink=
"
@color/colorPrimaryDark
"
android:textColorLink=
"
?attr/urlColor
"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
...
@@ -652,7 +652,7 @@
...
@@ -652,7 +652,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:linksClickable=
"true"
android:linksClickable=
"true"
android:text=
"@string/android_app"
android:text=
"@string/android_app"
android:textColorLink=
"
@color/colorPrimaryDark
"
android:textColorLink=
"
?attr/urlColor
"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
<TextView
...
@@ -666,7 +666,7 @@
...
@@ -666,7 +666,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:linksClickable=
"true"
android:linksClickable=
"true"
android:text=
"@string/angular_pwa"
android:text=
"@string/angular_pwa"
android:textColorLink=
"
@color/colorPrimaryDark
"
android:textColorLink=
"
?attr/urlColor
"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
app/src/main/res/layout/fragment_body.xml
View file @
f55e0af0
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:layout_weight=
"10"
android:text=
"Org Title"
android:text=
"Org Title"
android:textColor=
"
#fff
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"21sp"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -137,8 +137,8 @@
...
@@ -137,8 +137,8 @@
android:layout_marginEnd=
"10dp"
android:layout_marginEnd=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:textColor=
"
#333
"
android:textColor=
"
?attr/themeColorInverse
"
android:textColorLink=
"
@color/colorPrimary
"
android:textColorLink=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
...
app/src/main/res/layout/fragment_event.xml
View file @
f55e0af0
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"10"
android:layout_weight=
"10"
android:text=
"Event Title"
android:text=
"Event Title"
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"21sp"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
android:layout_marginStart=
"8dp"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Event Website"
android:contentDescription=
"Event Website"
android:tint=
"
?attr/themeColor
"
android:tint=
"
@color/colorWhite
"
android:visibility=
"invisible"
android:visibility=
"invisible"
app:srcCompat=
"@drawable/ic_language_black_24dp"
/>
app:srcCompat=
"@drawable/ic_language_black_24dp"
/>
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
android:layout_marginStart=
"8dp"
android:layout_marginStart=
"8dp"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Navigate"
android:contentDescription=
"Navigate"
android:tint=
"
?attr/themeColor
"
android:tint=
"
@color/colorWhite
"
app:srcCompat=
"@drawable/baseline_navigation_24"
/>
app:srcCompat=
"@drawable/baseline_navigation_24"
/>
<ImageButton
<ImageButton
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
android:background=
"?attr/selectableItemBackgroundBorderless"
android:background=
"?attr/selectableItemBackgroundBorderless"
android:contentDescription=
"Share Event"
android:contentDescription=
"Share Event"
android:src=
"@drawable/ic_menu_share"
android:src=
"@drawable/ic_menu_share"
android:tint=
"
?attr/themeColor
"
/>
android:tint=
"
@color/colorWhite
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
@@ -110,14 +110,14 @@
...
@@ -110,14 +110,14 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"No Date Specified"
android:text=
"No Date Specified"
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" | "
android:text=
" | "
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
<TextView
<TextView
...
@@ -125,14 +125,14 @@
...
@@ -125,14 +125,14 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"No Time Specified"
android:text=
"No Time Specified"
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
" | "
android:text=
" | "
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
<TextView
<TextView
...
@@ -140,8 +140,8 @@
...
@@ -140,8 +140,8 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:ellipsize=
"end"
android:ellipsize=
"end"
android:text=
"
No Venue Specified
"
android:text=
"
Venue
"
android:textColor=
"
?attr/themeColor
"
android:textColor=
"
@color/colorWhite
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -190,6 +190,12 @@
...
@@ -190,6 +190,12 @@
</LinearLayout>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"1dp"
android:background=
"#aaa"
>
</View>
<TextView
<TextView
android:id=
"@+id/event_page_description"
android:id=
"@+id/event_page_description"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -199,7 +205,7 @@
...
@@ -199,7 +205,7 @@
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"12dp"
android:layout_marginTop=
"12dp"
android:textColor=
"?attr/themeColorInverse"
android:textColor=
"?attr/themeColorInverse"
android:textColorLink=
"
@color/colorPrimary
"
android:textColorLink=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
...
...
app/src/main/res/layout/mess_menu_card.xml
View file @
f55e0af0
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:text=
"Breakfast"
android:text=
"Breakfast"
android:textColor=
"
@color/colorPrimaryDark
"
android:textColor=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:text=
"Lunch"
android:text=
"Lunch"
android:textColor=
"
@color/colorPrimaryDark
"
android:textColor=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:text=
"Tiffin"
android:text=
"Tiffin"
android:textColor=
"
@color/colorPrimaryDark
"
android:textColor=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:text=
"Dinner"
android:text=
"Dinner"
android:textColor=
"
@color/colorPrimaryDark
"
android:textColor=
"
?attr/urlColor
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
...
app/src/main/res/layout/news_article_card.xml
View file @
f55e0af0
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"16dp"
android:padding=
"16dp"
android:layout_margin=
"8dp"
android:layout_margin=
"8dp"
android:background=
"
#F2F2F2
"
android:background=
"
?attr/newsColor
"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/article_title"
android:id=
"@+id/article_title"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"
#000000
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"20sp"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"sans-serif-light"
android:fontFamily=
"sans-serif-light"
android:textColor=
"
#000000
"
android:textColor=
"
?attr/themeColorInverse
"
android:textSize=
"17sp"
/>
android:textSize=
"17sp"
/>
<TextView
<TextView
...
@@ -48,6 +48,6 @@
...
@@ -48,6 +48,6 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:textColor=
"
#000000
"
android:textColor=
"
?attr/themeColorInverse
"
android:textColorLink=
"
@color/colorPrimary
"
/>
android:textColorLink=
"
?attr/urlColor
"
/>
</LinearLayout>
</LinearLayout>
app/src/main/res/values/attrs.xml
View file @
f55e0af0
...
@@ -39,5 +39,7 @@ limitations under the License.
...
@@ -39,5 +39,7 @@ limitations under the License.
<attr
name=
"themeColor"
format=
"reference|color"
/>
<attr
name=
"themeColor"
format=
"reference|color"
/>
<attr
name=
"themeColorInverse"
format=
"reference|color"
/>
<attr
name=
"themeColorInverse"
format=
"reference|color"
/>
<attr
name=
"newsColor"
format=
"reference|color"
/>
<attr
name=
"urlColor"
format=
"reference|color"
/>
</resources>
</resources>
\ No newline at end of file
app/src/main/res/values/styles.xml
View file @
f55e0af0
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"themeColor"
>
#FFFFFF
</item>
<item
name=
"themeColor"
>
#FFFFFF
</item>
<item
name=
"themeColorInverse"
>
#000000
</item>
<item
name=
"themeColorInverse"
>
#000000
</item>
<item
name=
"newsColor"
>
#F2F2F2
</item>
<item
name=
"urlColor"
>
@color/colorPrimary
</item>
</style>
</style>
<style
name=
"AppTheme.NoActionBar"
>
<style
name=
"AppTheme.NoActionBar"
>
...
@@ -21,6 +23,8 @@
...
@@ -21,6 +23,8 @@
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"themeColor"
>
#000000
</item>
<item
name=
"themeColor"
>
#000000
</item>
<item
name=
"themeColorInverse"
>
#FFFFFF
</item>
<item
name=
"themeColorInverse"
>
#FFFFFF
</item>
<item
name=
"newsColor"
>
#00000000
</item>
<item
name=
"urlColor"
>
@color/colorAccent
</item>
</style>
</style>
<style
name=
"AppThemeDark.NoActionBar"
>
<style
name=
"AppThemeDark.NoActionBar"
>
...
@@ -29,7 +33,7 @@
...
@@ -29,7 +33,7 @@
</style>
</style>
<style
name=
"BlueAccent"
>
<style
name=
"BlueAccent"
>
<item
name=
"colorAccent"
>
@color/colorPrimary
</item>
<item
name=
"colorAccent"
>
?attr/urlColor
</item>
</style>
</style>
<style
name=
"AppTheme.AppBarOverlay"
parent=
"ThemeOverlay.AppCompat.Dark.ActionBar"
/>
<style
name=
"AppTheme.AppBarOverlay"
parent=
"ThemeOverlay.AppCompat.Dark.ActionBar"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment