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
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,20 @@ private void applyFitState(List<Channel> chosen) {
fits.setText(getString(R.string.k2go_zim_fits_fmt,
ByteFormatter.toHuman(plan.requiredBytes()),
freeBytes == null ? "" : ByteFormatter.toHuman(freeBytes)));
paint(R.color.k2go_leaf, R.drawable.k2go_ok_bg);
paint(R.color.k2go_ok_ink, R.drawable.k2go_ok_bg);
fitAllows = true;
} else if (Boolean.FALSE.equals(verdict)) {
fits.setText(getString(R.string.k2go_zim_nofit_fmt,
ByteFormatter.toHuman(plan.requiredBytes()),
freeBytes == null ? "" : ByteFormatter.toHuman(freeBytes)));
paint(R.color.k2go_amber_text, R.drawable.k2go_warn_bg);
paint(R.color.k2go_warn_ink, R.drawable.k2go_warn_bg);
fitAllows = false;
} else {
// Cannot tell: a channel with no published size, or no readable free
// space. Warn and let it through — refusing here would block a
// download that has every chance of succeeding.
fits.setText(R.string.k2go_kolibri_fit_unknown);
paint(R.color.k2go_amber_text, R.drawable.k2go_warn_bg);
paint(R.color.k2go_warn_ink, R.drawable.k2go_warn_bg);
fitAllows = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ private View buildReturnBar() {
msg.setTextAppearance(com.google.android.material.R.style.TextAppearance_Material3_BodyMedium);
// ADFA-4961: set the color AFTER the appearance — setTextAppearance() overrides textColor, which
// was leaving this line the theme's light default (invisible on the pale info background).
msg.setTextColor(ContextCompat.getColor(requireContext(), R.color.k2go_teal));
msg.setTextColor(ContextCompat.getColor(requireContext(), R.color.k2go_info_ink));
bar.addView(msg, new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT, 1f));

TextView cancel = new TextView(requireContext());
cancel.setText(getString(R.string.cancel));
cancel.setTypeface(cancel.getTypeface(), android.graphics.Typeface.BOLD);
cancel.setTextColor(ContextCompat.getColor(requireContext(), R.color.k2go_teal));
cancel.setTextColor(ContextCompat.getColor(requireContext(), R.color.k2go_info_ink));
cancel.setPadding(px(12), px(4), px(4), px(4));
cancel.setOnClickListener(v -> {
returnCancelled = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,21 @@ private void buildDns(Context ctx, LinearLayout list) {
accept.setEnabled(true); accept.setAlpha(1f);
spinner.setVisibility(View.GONE);
statusIcon.setImageResource(R.drawable.ic_check_circle);
statusIcon.setColorFilter(ContextCompat.getColor(ctx, R.color.k2go_leaf));
statusIcon.setColorFilter(ContextCompat.getColor(ctx, R.color.k2go_ok_ink));
statusIcon.setVisibility(View.VISIBLE);
statusCard.setBackgroundResource(R.drawable.k2go_ok_bg);
statusText.setTextColor(ContextCompat.getColor(ctx, R.color.k2go_leaf));
statusText.setTextColor(ContextCompat.getColor(ctx, R.color.k2go_ok_ink));
statusText.setText(getString(R.string.dns_status_ok));
statusCard.setVisibility(View.VISIBLE);
break;
case UNREACHABLE:
accept.setEnabled(true); accept.setAlpha(1f);
spinner.setVisibility(View.GONE);
statusIcon.setImageResource(R.drawable.ic_warning_24);
statusIcon.setColorFilter(ContextCompat.getColor(ctx, R.color.k2go_amber_text));
statusIcon.setColorFilter(ContextCompat.getColor(ctx, R.color.k2go_warn_ink));
statusIcon.setVisibility(View.VISIBLE);
statusCard.setBackgroundResource(R.drawable.k2go_warn_bg);
statusText.setTextColor(ContextCompat.getColor(ctx, R.color.k2go_amber_text));
statusText.setTextColor(ContextCompat.getColor(ctx, R.color.k2go_warn_ink));
statusText.setText(st.message == null ? "" : st.message);
statusCard.setVisibility(View.VISIBLE);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
fitsView.setText(fits
? getString(R.string.k2go_zim_fits_fmt, gb(totalMb), gb(freeMb))
: getString(R.string.k2go_zim_nofit_fmt, gb(totalMb), gb(freeMb)));
fitsView.setTextColor(ContextCompat.getColor(requireContext(), fits ? R.color.k2go_leaf : R.color.k2go_amber_text));
fitsView.setTextColor(ContextCompat.getColor(requireContext(), fits ? R.color.k2go_ok_ink : R.color.k2go_warn_ink));
// Filled banner (never an outline/button); a round check for the "fits" case.
fitsView.setBackgroundResource(fits ? R.drawable.k2go_ok_bg : R.drawable.k2go_warn_bg);
fitsView.setCompoundDrawablesRelativeWithIntrinsicBounds(fits ? R.drawable.ic_check_circle : 0, 0, 0, 0);
Expand Down
4 changes: 2 additions & 2 deletions controller/app/src/main/res/drawable/k2go_info_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#0E5C63" />
<solid android:color="@color/k2go_teal" />
<corners android:radius="16dp" />
</shape>
</item>
<item android:left="5dp">
<shape android:shape="rectangle">
<solid android:color="#DCE9EA" />
<solid android:color="@color/k2go_info_container" />
<corners android:radius="16dp" />
</shape>
</item>
Expand Down
4 changes: 2 additions & 2 deletions controller/app/src/main/res/drawable/k2go_notice_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/k2go_clay" />
<solid android:color="@color/k2go_notice_bar" />
<corners android:radius="16dp" />
</shape>
</item>
<item android:left="5dp">
<shape android:shape="rectangle">
<solid android:color="#F7E2DD" />
<solid android:color="@color/k2go_notice_container" />
<corners android:radius="16dp" />
</shape>
</item>
Expand Down
4 changes: 2 additions & 2 deletions controller/app/src/main/res/drawable/k2go_ok_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#2E9E5B" />
<solid android:color="@color/k2go_leaf" />
<corners android:radius="16dp" />
</shape>
</item>
<item android:left="5dp">
<shape android:shape="rectangle">
<solid android:color="#DCF0E3" />
<solid android:color="@color/k2go_ok_container" />
<corners android:radius="16dp" />
</shape>
</item>
Expand Down
4 changes: 2 additions & 2 deletions controller/app/src/main/res/drawable/k2go_warn_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#C98A1E" />
<solid android:color="@color/k2go_amber" />
<corners android:radius="16dp" />
</shape>
</item>
<item android:left="5dp">
<shape android:shape="rectangle">
<solid android:color="#FBEFD3" />
<solid android:color="@color/k2go_warn_container" />
<corners android:radius="16dp" />
</shape>
</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@
android:text="@string/k2go_bj_wait_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_bj_wait_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<!-- ADFA-4961: collapsible detailed log — GONE until tar/extract output is plumbed (see ticket). -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
android:text="@string/k2go_books_confirm_note_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_books_dl_sub"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
android:layout_height="wrap_content"
android:text="@string/k2go_books_dl_sub"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>
</LinearLayout>

Expand Down
18 changes: 9 additions & 9 deletions controller/app/src/main/res/layout/fragment_k2go_clone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
android:text="@string/k2go_clone_one_android_step" android:textStyle="bold" android:textColor="#8A5A00" android:textAppearance="?attr/textAppearanceBodyMedium" />
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="2dp"
android:text="@string/k2go_clone_allow_install_note"
android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
</LinearLayout>
</LinearLayout>

Expand Down Expand Up @@ -338,7 +338,7 @@
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/k2go_clone_nothing_to_replace" android:textStyle="bold" android:textColor="#1E6B2E" android:textAppearance="?attr/textAppearanceTitleMedium" />
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="2dp"
android:text="@string/k2go_clone_no_library_fresh" android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
android:text="@string/k2go_clone_no_library_fresh" android:textColor="@color/k2go_ok_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
</LinearLayout>
</LinearLayout>
<TextView android:id="@+id/k2go_rcv_confirm_go" android:layout_width="match_parent" android:layout_height="wrap_content"
Expand All @@ -363,20 +363,20 @@
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/k2go_clone_incompat_title" android:textStyle="bold" android:textColor="#8A5A00" android:textAppearance="?attr/textAppearanceTitleMedium" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/k2go_clone_for_copying" android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodyMedium" />
android:text="@string/k2go_clone_for_copying" android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodyMedium" />
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp"
android:text="@string/k2go_clone_incompat_body" android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
android:text="@string/k2go_clone_incompat_body" android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp"
android:text="@string/k2go_clone_what_to_do" android:textStyle="bold" android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodyMedium" />
android:text="@string/k2go_clone_what_to_do" android:textStyle="bold" android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodyMedium" />
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="2dp"
android:text="@string/k2go_clone_get_version_note" android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
android:text="@string/k2go_clone_get_version_note" android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
<TextView android:id="@+id/k2go_rcv_incompat_why" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:text="@string/k2go_clone_why_incompat" android:textStyle="bold" android:textColor="#8A5A00"
android:textAppearance="?attr/textAppearanceBodyMedium" android:clickable="true" android:focusable="true" />
<TextView android:id="@+id/k2go_rcv_incompat_whytext" android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:visibility="gone"
android:text="@string/k2go_clone_incompat_why_long"
android:textColor="@color/k2go_notice_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
android:textColor="@color/k2go_warn_ink" android:textAppearance="?attr/textAppearanceBodySmall" />
</LinearLayout>
</LinearLayout>

Expand Down Expand Up @@ -445,10 +445,10 @@
android:background="@drawable/k2go_info_bg">
<TextView android:layout_width="match_parent" android:layout_height="wrap_content"
android:text="@string/k2go_bj_wait_title" android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall" android:textColor="@color/k2go_teal" />
android:textAppearance="?attr/textAppearanceTitleSmall" android:textColor="@color/k2go_info_ink" />
<TextView android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:text="@string/k2go_bj_wait_body"
android:textAppearance="?attr/textAppearanceBodySmall" android:textColor="@color/k2go_teal" />
android:textAppearance="?attr/textAppearanceBodySmall" android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<TextView android:id="@+id/k2go_clone_cancel" android:layout_width="match_parent" android:layout_height="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
android:text="@string/k2go_maps_takes_time_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_amber_text" />
android:textColor="@color/k2go_warn_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_maps_takes_time_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_amber_text" />
android:textColor="@color/k2go_warn_ink" />
</LinearLayout>

<LinearLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
android:text="@string/k2go_maps_leave_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_maps_leave_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<!-- ADFA-4901: collapsible live log fed by LogRepository (the reusable terminal for all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
android:text="@string/k2go_mod_leave_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_mod_leave_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<LinearLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
android:text="@string/k2go_zim_takes_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_amber_text" />
android:textColor="@color/k2go_warn_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_zim_takes_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_amber_text" />
android:textColor="@color/k2go_warn_ink" />
</LinearLayout>

<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@
android:text="@string/k2go_zim_leave_title"
android:textStyle="bold"
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/k2go_zim_leave_body"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="@color/k2go_teal" />
android:textColor="@color/k2go_info_ink" />
</LinearLayout>

<!-- ADFA-5074: a Finish and a Run-in-background button used to sit here, for the Get More
Expand Down
Loading
Loading