diff --git a/app/build.gradle b/app/build.gradle index 82808285cacc7a70f5ed3261c2f42a81044eac01..cb191fdc6ebbf19fef9cef2217bc2eafcad2f24f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,14 +30,9 @@ android { enabled = true } - aaptOptions { - additionalParameters '-I', 'e-ui-sdk.jar' - } - } dependencies { - compileOnly files("../e-ui-sdk.jar") implementation project(':cert4android') @@ -60,4 +55,5 @@ dependencies { implementation "com.google.android.material:material:1.0.0" implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'foundation.e:elib:0.0.1-alpha11' } diff --git a/app/src/main/java/foundation/e/notes/android/activity/NotesListViewActivity.java b/app/src/main/java/foundation/e/notes/android/activity/NotesListViewActivity.java index 771991ba4198a0bca0b0fd3a0dca52e5710094b2..43ae92a39b64378e9f4d5582ec63ea82875be97e 100644 --- a/app/src/main/java/foundation/e/notes/android/activity/NotesListViewActivity.java +++ b/app/src/main/java/foundation/e/notes/android/activity/NotesListViewActivity.java @@ -339,10 +339,10 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.action_drawer_open, R.string.action_drawer_close); drawerToggle.setDrawerIndicatorEnabled(false); drawerLayout.addDrawerListener(drawerToggle); - drawerToggle.setHomeAsUpIndicator(lineageos.platform.R.drawable.ic_hamburger); + drawerToggle.setHomeAsUpIndicator(R.drawable.e_ic_hamburger); if (toolbar.getNavigationIcon() != null) - toolbar.getNavigationIcon().setTint(ContextCompat.getColor(this, lineageos.platform.R.color.color_default_accent)); + toolbar.getNavigationIcon().setTint(ContextCompat.getColor(this, R.color.e_primary_text_color)); drawerToggle.setToolbarNavigationClickListener(new View.OnClickListener() { @Override @@ -389,8 +389,8 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap } private void setupNavigationList(final String selectedItem) { - itemRecent = new NavigationAdapter.NavigationItem(ADAPTER_KEY_RECENT, getString(R.string.label_all_notes), null, lineageos.platform.R.drawable.ic_recent); - itemFavorites = new NavigationAdapter.NavigationItem(ADAPTER_KEY_STARRED, getString(R.string.label_favorites), null, lineageos.platform.R.drawable.ic_star_filled); + itemRecent = new NavigationAdapter.NavigationItem(ADAPTER_KEY_RECENT, getString(R.string.label_all_notes), null, R.drawable.ic_access_time_grey600_24dp); + itemFavorites = new NavigationAdapter.NavigationItem(ADAPTER_KEY_STARRED, getString(R.string.label_favorites), null, R.drawable.ic_star_yellow_24dp); adapterCategories = new NavigationAdapter(new NavigationAdapter.ClickListener() { @Override public void onItemClick(NavigationAdapter.NavigationItem item) { @@ -524,9 +524,9 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap } private void setupNavigationMenu() { - final NavigationAdapter.NavigationItem itemTrashbin = new NavigationAdapter.NavigationItem("trashbin", getString(R.string.action_trashbin), null, lineageos.platform.R.drawable.ic_bin); - final NavigationAdapter.NavigationItem itemSettings = new NavigationAdapter.NavigationItem("settings", getString(R.string.action_settings), null, lineageos.platform.R.drawable.ic_settings); - final NavigationAdapter.NavigationItem itemAbout = new NavigationAdapter.NavigationItem("about", getString(R.string.simple_about), null, lineageos.platform.R.drawable.ic_info); + final NavigationAdapter.NavigationItem itemTrashbin = new NavigationAdapter.NavigationItem("trashbin", getString(R.string.action_trashbin), null, R.drawable.ic_delete_grey600_24dp); + final NavigationAdapter.NavigationItem itemSettings = new NavigationAdapter.NavigationItem("settings", getString(R.string.action_settings), null, R.drawable.ic_settings_grey600_24dp); + final NavigationAdapter.NavigationItem itemAbout = new NavigationAdapter.NavigationItem("about", getString(R.string.simple_about), null, R.drawable.ic_info_outline_grey600_24dp); ArrayList itemsMenu = new ArrayList<>(); itemsMenu.add(itemTrashbin); diff --git a/app/src/main/java/foundation/e/notes/model/ItemAdapter.java b/app/src/main/java/foundation/e/notes/model/ItemAdapter.java index 9bc79e12c26160fc4e1cce3b6f6391298883d1c7..15963a9e906a7a084ae1fe330a24f46a20781401 100644 --- a/app/src/main/java/foundation/e/notes/model/ItemAdapter.java +++ b/app/src/main/java/foundation/e/notes/model/ItemAdapter.java @@ -105,7 +105,7 @@ public class ItemAdapter extends RecyclerView.Adapter { nvHolder.noteCategory.setText(Html.fromHtml(note.getCategory())); nvHolder.noteExcerpt.setText(Html.fromHtml(note.getExcerpt())); nvHolder.noteStatus.setVisibility(DBStatus.VOID.equals(note.getStatus()) ? View.INVISIBLE : View.VISIBLE); - nvHolder.noteFavorite.setImageResource(note.isFavorite() ? lineageos.platform.R.drawable.ic_star_filled : lineageos.platform.R.drawable.ic_star); + nvHolder.noteFavorite.setImageResource(note.isFavorite() ? R.drawable.ic_star_yellow_24dp : R.drawable.ic_star_grey_ccc_24dp); nvHolder.noteFavorite.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/app/src/main/java/foundation/e/notes/model/NavigationAdapter.java b/app/src/main/java/foundation/e/notes/model/NavigationAdapter.java index a652e49470967e6732f1c8c9a78fc42cde47b115..cd8e05be5cce3405c438c7dfbe1a730ec0b106d7 100644 --- a/app/src/main/java/foundation/e/notes/model/NavigationAdapter.java +++ b/app/src/main/java/foundation/e/notes/model/NavigationAdapter.java @@ -25,7 +25,7 @@ import foundation.e.notes.util.NoteUtil; public class NavigationAdapter extends RecyclerView.Adapter { @DrawableRes - public static final int ICON_FOLDER = lineageos.platform.R.drawable.ic_folder; + public static final int ICON_FOLDER = R.drawable.ic_folder_grey600_24dp; @DrawableRes public static final int ICON_NOFOLDER = R.drawable.ic_folder_open_grey600_24dp; @DrawableRes diff --git a/app/src/main/res/drawable/ic_star_grey_ccc_24dp.xml b/app/src/main/res/drawable/ic_star_grey_ccc_24dp.xml index 1c7ebd95791e0ae8c49be719f5bb2e737fb89f9e..ed6b7ece936773437a590250dcdaab0dfe780f64 100644 --- a/app/src/main/res/drawable/ic_star_grey_ccc_24dp.xml +++ b/app/src/main/res/drawable/ic_star_grey_ccc_24dp.xml @@ -1,11 +1,27 @@ + + + android:tint="@color/e_icon_color" + android:viewportWidth="48.0" + android:viewportHeight="48.0"> - + android:fillColor="@android:color/white" + android:pathData="M16.15,37.75 L24,33.05 31.85,37.8 29.75,28.9 36.65,22.9 27.55,22.1 24,13.7 20.45,22.05 11.35,22.85 18.25,28.85ZM11.65,44 L14.9,29.95 4,20.5 18.4,19.25 24,6 29.6,19.25 44,20.5 33.1,29.95 36.35,44 24,36.55ZM24,26.25Z"/> + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml index 34b86389c59a17297591a25e4b5e9fd62bfb0582..a3877db90b667dc5b060bca9c0b8d38bb38dd03e 100644 --- a/app/src/main/res/layout/activity_account.xml +++ b/app/src/main/res/layout/activity_account.xml @@ -36,7 +36,7 @@ android:background="@color/accent_color" android:layout_marginTop="32dp" android:text="@string/login_with_e_account" - android:textColor="@android:color/white" /> + android:textColor="@color/e_background" />