No results found

R-Pointer - Xposed Module Repository

R-Pointer

This module is for modifying the icon of the mouse pointer

English | 简体中文

Features

  • Provides a custom mouse pointer icon feature.
  • Provides multiple preset mouse pointer icons for users to choose from. (Under development)

How to Use

  1. Install the LSPosed framework.
  2. Download and install this module.
  3. Enable this module in the LSPosed framework.
  4. Check the scope in the LSPosed framework.
  5. Restart the application.

Developer

hujiayucc

Development Frameworks

Supported Environments

Core Code

ActivityClass.method {
    name = "onCreate"
    param(BundleClass)
}.hook {
    after {
        if (YukiHookAPI.Configs.isDebug) YLog.debug("Start hook packageName: $packageName")
        bitmap = ResourcesCompat.getDrawable(moduleAppResources, R.drawable.pointer_arrow, moduleAppResources.newTheme())?.toBitmap()
        // activity.setIcon(fileDir ,bitmap)
    }
}

ViewClass.method {
    name = "onResolvePointerIcon"
}.hook {
    YLog.Configs.isEnable = false
    before {
        bitmap?.let { result = PointerIcon.create(it,0f,0f) }
    }
}

// It can also be done this way
private fun Activity.setIcon(fileDir: File, bitmap: Bitmap?) {
    if (bitmap == null) return
    val configFile = File(fileDir,"config.conf")
    val pointerIcon = PointerIcon.create(bitmap,0f,0f)
    window.decorView.setOnHoverListener { _, _ ->
        window.decorView.pointerIcon = pointerIcon
        true
    }
}

License

Apache License Version 2.0

Copyright (C) 2023 hujiayucc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Package

com.hujiayucc.rpointer

Authors

hujiayucc

Releases

1.0.1

Release Type: Stable

12/15/2023, 2:04:29 AM

View all releases

Releases

1.0.1

Release Type: Stable

12/15/2023, 2:04:29 AM

Update Log

  • Added more PointerIcons
  • Optimized the color of PointerIcons
  • Introduced a new hooker module
  • Optimized several aspects of the code
  • Improved the logic of Language Checks
  • Provided support for the Chinese Language
  • Integrated Custom Theme Colors
  • Implemented a transparent status bar
  • Introduced a transparent navigation bar
  • Enhanced the style of the theme
  • Added a new Icon List
  • Fix Bugs

更新日志

  • 新增 更多的PointerIcon
  • 优化 PointerIcon颜色
  • 新增 Hooker模块
  • 优化 若干代码逻辑
  • 优化 语言切换逻辑
  • 新增 中文语言支持
  • 新增 自定义主题颜色
  • 新增 透明状态栏
  • 新增 透明导航栏
  • 优化 主题样式
  • 新增 图标列表
  • 修复 若干Bug

Show older versions

© 2021 - 2024 New Xposed Module Repository