Git Product home page Git Product logo

Comments (9)

MY1L avatar MY1L commented on July 4, 2024

我不了解linux光标的格式,尤其是动态的,有没有这方面的文档?这个光标应该有公开的文档可以查阅罢……

我以前见过一包linux光标,里面是png图片和一些像脚本的纯文本,但我不懂含义。

话说这个问题有在相关社区询问吗。考虑linux用户这个需求存在,我猜网上可能有现成转换方案。如果你是转png这一步有困难,我倒是可以解决。如果有文档,我还可以看看那些纯文本是什么含义。

from tinyhand.

tokyo36 avatar tokyo36 commented on July 4, 2024

from tinyhand.

MY1L avatar MY1L commented on July 4, 2024

好吧 谢谢

咦……遇到什么困难了吗?

from tinyhand.

tokyo36 avatar tokyo36 commented on July 4, 2024

好吧 谢谢

咦……遇到什么困难了吗?

之前在trello看到你说生病了 这么久了 已经康复了吧

from tinyhand.

MY1L avatar MY1L commented on July 4, 2024

目前还行。反正经常去医院已经习惯了😂

from tinyhand.

JokerQyou avatar JokerQyou commented on July 4, 2024

Probably helpful: KDE - create your own mouse cursor theme. Not sure about other DEs though.

from tinyhand.

MY1L avatar MY1L commented on July 4, 2024

Probably helpful: KDE - create your own mouse cursor theme. Not sure about other DEs though.

教程有用,只是还缺了些内容。
似乎KDE的系统光标种类多于视窗(意味着我做的现有光标不能完全覆盖系统光标),以及命名不同,文中提到“光标列表参见 /usr/include/X11/cursorfont.h”,但我没这个文件。要有个完整的KDE光标例子打包就好对照了。
另外其中提到的 symlinks 是可以打包发布的吗。

from tinyhand.

JokerQyou avatar JokerQyou commented on July 4, 2024

KDE5 的 /usr/include/X11/cursorfont.h 文件内容:


/*

Copyright 1987, 1998 The Open Group

Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of The Open Group shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from The Open Group.

*/

#ifndef X11_CURSORFONT_H
#define X11_CURSORFONT_H

#define XC_num_glyphs 154
#define XC_X_cursor 0
#define XC_arrow 2
#define XC_based_arrow_down 4
#define XC_based_arrow_up 6
#define XC_boat 8
#define XC_bogosity 10
#define XC_bottom_left_corner 12
#define XC_bottom_right_corner 14
#define XC_bottom_side 16
#define XC_bottom_tee 18
#define XC_box_spiral 20
#define XC_center_ptr 22
#define XC_circle 24
#define XC_clock 26
#define XC_coffee_mug 28
#define XC_cross 30
#define XC_cross_reverse 32
#define XC_crosshair 34
#define XC_diamond_cross 36
#define XC_dot 38
#define XC_dotbox 40
#define XC_double_arrow 42
#define XC_draft_large 44
#define XC_draft_small 46
#define XC_draped_box 48
#define XC_exchange 50
#define XC_fleur 52
#define XC_gobbler 54
#define XC_gumby 56
#define XC_hand1 58
#define XC_hand2 60
#define XC_heart 62
#define XC_icon 64
#define XC_iron_cross 66
#define XC_left_ptr 68
#define XC_left_side 70
#define XC_left_tee 72
#define XC_leftbutton 74
#define XC_ll_angle 76
#define XC_lr_angle 78
#define XC_man 80
#define XC_middlebutton 82
#define XC_mouse 84
#define XC_pencil 86
#define XC_pirate 88
#define XC_plus 90
#define XC_question_arrow 92
#define XC_right_ptr 94
#define XC_right_side 96
#define XC_right_tee 98
#define XC_rightbutton 100
#define XC_rtl_logo 102
#define XC_sailboat 104
#define XC_sb_down_arrow 106
#define XC_sb_h_double_arrow 108
#define XC_sb_left_arrow 110
#define XC_sb_right_arrow 112
#define XC_sb_up_arrow 114
#define XC_sb_v_double_arrow 116
#define XC_shuttle 118
#define XC_sizing 120
#define XC_spider 122
#define XC_spraycan 124
#define XC_star 126
#define XC_target 128
#define XC_tcross 130
#define XC_top_left_arrow 132
#define XC_top_left_corner 134
#define XC_top_right_corner 136
#define XC_top_side 138
#define XC_top_tee 140
#define XC_trek 142
#define XC_ul_angle 144
#define XC_umbrella 146
#define XC_ur_angle 148
#define XC_watch 150
#define XC_xterm 152

#endif /* X11_CURSORFONT_H */

我理解应该会有个 default 图标之类的,缺少的图标可能会直接 fallback 到这个上(不确定)。symlink 是可以打包到 tar 中的。可以参考其他的图标项目,例如 https://github.com/ful1e5/apple_cursor

from tinyhand.

MY1L avatar MY1L commented on July 4, 2024

看见许多完全不认识的光标名称。这下可要花时间研究了🤔

from tinyhand.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.