Skip to content

Commit

Permalink
Update drawable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-Boulay committed Mar 8, 2022
1 parent 3abd2af commit 7452dc3
Show file tree
Hide file tree
Showing 10 changed files with 609 additions and 5 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void placeMouseAt(float x, float y) {

private void init(){
// Setup mouse pointer
mMousePointerImageView.setImageDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.mouse_pointer, getContext().getTheme()));
mMousePointerImageView.setImageDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.ic_mouse_pointer, getContext().getTheme()));
mMousePointerImageView.post(() -> {
ViewGroup.LayoutParams params = mMousePointerImageView.getLayoutParams();
params.width = (int) (36 / 100f * LauncherPreferences.PREF_MOUSESCALE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void doFrame(long frameTimeNanos) {

Context ctx = contextView.getContext();
mPointerImageView = new ImageView(contextView.getContext());
mPointerImageView.setImageDrawable(ResourcesCompat.getDrawable(ctx.getResources(), R.drawable.gamepad_pointer, ctx.getTheme()));
mPointerImageView.setImageDrawable(ResourcesCompat.getDrawable(ctx.getResources(), R.drawable.ic_gamepad_pointer, ctx.getTheme()));
mPointerImageView.getDrawable().setFilterBitmap(false);

int size = (int) ((22 * getMcScale()) / mScaleFactor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public HandleView(ControlButton view) {
mContainer.setWindowLayoutType(WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL);
mContainer.setContentView(this);

mDrawableRtl = view.getContext().getDrawable(R.drawable.view_handle);
mDrawableRtl = view.getContext().getDrawable(R.drawable.ic_view_handle);
mMinSize = view.getContext().getResources().getDimensionPixelSize(R.dimen.text_handle_min_size);

setOnLongClickListener(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
android:id="@+id/main_mouse_pointer"
android:layout_width="18dp"
android:layout_height="27dp"
android:src="@drawable/mouse_pointer" />
android:src="@drawable/ic_mouse_pointer" />

</LinearLayout>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:id="@+id/login_image_logo"
android:layout_width="300dp"
android:layout_height="48dp"
android:src="@drawable/logo"
android:src="@drawable/ic_logo"

app:layout_constraintBottom_toTopOf="@+id/login_menu"
app:layout_constraintEnd_toStartOf="@+id/guidelineLeft"
Expand Down

0 comments on commit 7452dc3

Please sign in to comment.