Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望移植到linux #1

Open
tokyo36 opened this issue Apr 3, 2021 · 9 comments
Open

希望移植到linux #1

tokyo36 opened this issue Apr 3, 2021 · 9 comments

Comments

@tokyo36
Copy link

tokyo36 commented Apr 3, 2021

No description provided.

@MY1L
Copy link
Owner

MY1L commented Apr 15, 2021

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

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

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

@tokyo36
Copy link
Author

tokyo36 commented Apr 30, 2021 via email

@MY1L
Copy link
Owner

MY1L commented May 1, 2021

好吧 谢谢

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

@tokyo36
Copy link
Author

tokyo36 commented Mar 18, 2022

好吧 谢谢

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

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

@MY1L
Copy link
Owner

MY1L commented Mar 27, 2022

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

@JokerQyou
Copy link

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

@MY1L
Copy link
Owner

MY1L commented Jul 21, 2022

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

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

@JokerQyou
Copy link

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

@MY1L
Copy link
Owner

MY1L commented Jul 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants