Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/res/drawable-night/shadow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<item>
<shape android:shape="rectangle">
<solid android:color="#1c1e21" />
<solid android:color="@color/nb_gray_separator" />
<corners
android:topLeftRadius="25dp"
android:topRightRadius="25dp"
Expand Down
43 changes: 31 additions & 12 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@
android:background="@color/nb_bg_home"
tools:context=".ui.home.HomeFragment">

<Space
android:id="@+id/spacer"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@id/top_guideline"
app:layout_constraintBottom_toTopOf="@id/barrier_below_bg_mask_container"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintVertical_bias="0.412" />

<View
android:id="@+id/mask_background"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/nb_bg_mask"
app:layout_constraintTop_toTopOf="@id/spacer"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintWidth_percent="0.79" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_below_bg_mask_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="bg_mask_container"/>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/bg_mask_container"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -58,17 +85,6 @@

</androidx.constraintlayout.widget.ConstraintLayout>


<View
android:id="@+id/white_background"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/nb_bg_mask"
app:layout_constraintTop_toBottomOf="@id/bg_mask_container"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@id/bg_mask_container"
app:layout_constraintEnd_toEndOf="@id/bg_mask_container"/>

<TextView
android:id="@+id/text_hostname"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -101,6 +117,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/shadow"
android:orientation="vertical"
android:gravity="center"
app:layout_constraintWidth_max="600dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
Expand Down Expand Up @@ -129,7 +148,7 @@
android:textSize="16sp" />
</LinearLayout>

</FrameLayout>>
</FrameLayout>

<androidx.constraintlayout.widget.Guideline
android:id="@+id/top_guideline"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_zero_peer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="40dp"
android:background="@color/nb_bg">
android:background="@color/nb_bg_peers">

<ImageView
android:layout_width="wrap_content"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<color name="white">#FFFFFF</color>

<color name="nb_bg">#181A1D</color>
<color name="nb_bg_peers">#181A1D</color>
<color name="nb_bg_home">#1c1e21</color>
<color name="nb_bg_mask">#181A1D</color>
<color name="nb_gray_light">#32363D</color>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<color name="white">#FFFFFFFF</color>

<color name="nb_bg">#F2F2F2</color>
<color name="nb_bg_peers">#F5F5F5</color>
<color name="nb_bg_home">#DEDEDE</color>
<color name="nb_bg_mask">#F2F2F2</color>
<color name="nb_gray_light">#F5F5F5</color>
Expand Down
Loading