Comments (4)
You can chose the coffee instead
from shadowsocksr-csharp.
i see this line...and i thought my request is impossible to implement.
MenuViewController.cs#L195
// we want to show more details but notify icon title is limited to 63 characters
string text = (enabled ?
(global ? I18N.GetString("Global") : I18N.GetString("PAC")) :
I18N.GetString("Disable system proxy"))
+ "\r\n"
+ String.Format(I18N.GetString("Running: Port {0}"), config.localPort) // this feedback is very important because they need to know Shadowsocks is running
;
_notifyIcon.Text = text.Substring(0, Math.Min(63, text.Length));
from shadowsocksr-csharp.
@THaGKI9
Yes, it's limited by windows.
from shadowsocksr-csharp.
@Akkariiin hello, the hero.
i found something on SO How can I show a systray tooltip longer than 63 chars?
this snippet may help, although a string longer than 63 chars shorter than 128 is supported only on win2k and later version of Windows.
public static void SetNotifyIconText(NotifyIcon ni, string text)
{
if (text.Length >= 128) throw new ArgumentOutOfRangeException("Text limited to 127 characters");
Type t = typeof(NotifyIcon);
BindingFlags hidden = BindingFlags.NonPublic | BindingFlags.Instance;
t.GetField("text", hidden).SetValue(ni, text);
if ((bool)t.GetField("added", hidden).GetValue(ni))
t.GetMethod("UpdateIcon", hidden).Invoke(ni, new object[] { true });
}
from shadowsocksr-csharp.
Related Issues (20)
- 八款免费靠谱的PC电脑梯子和苹果梯子,支持苹果手机和电脑同时科学上网
- 【手机电脑翻墙教程】 五款适用于手机和电脑的便宜靠谱VPN推荐,价格接近免费 HOT 2
- 【免费电脑手机梯子】推荐七款支持window、ios和Andriod的梯子VPN,免费的科学上网助手
- 【免费靠谱Andriod安卓手机梯子】五款适合安卓手机的最佳科学上网梯子推荐,真的十分流畅 HOT 1
- 为什么vpn突然电脑用不了了,但是手机上还可以用
- 【免费和收费VPN分享】七款手机电脑都能用的免费+收费上外网梯子,文末附免费SSR节点 HOT 7
- 今天开始用不了了,进不去gmail,换了很多服务器都不行 HOT 2
- 无法打开官网续费
- 稳定好用的VPN梯子推荐,手机电脑翻墙机场节点
- ok
- 【免費电脑&手机梯子】真正无限流量且电脑和手机都能用的免费梯子软件 HOT 1
- 七款免费电脑梯子,同时还支持苹果手机和安卓手机免费科学上外网 HOT 1
- yzhou
- 5款免费PC电脑上外网的软件推荐,兼容windows、Linux、Mac等多系统
- 无法使用
- 手机怎么下载
- 桔子云不能使用chatgpt(非香港节点也不行)
- 111
- 官网咋没了?跑路了?官网没了到期咋续啊
- 【VPN分享】手机电脑通用VPN梯子推荐—性价比梯子
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowsocksr-csharp.