English 中文(简体)
GTK:Button onHover effect different on Linux and Windows
原标题:

I have a GTK button on my GUI app, however, the hover effects are different for both Linux and Windows:

Heres Linux:

http://imgur.com/DKAy6

Heres Windows:

http://imgur.com/v0FFU

I did not do anything fancy to the animations, in fact, the animation is default, how can I make it uniform?

Thank you.

最佳回答

It depends on your GTK theme. GTK on Windows uses a Windows-like theme by default, so applications look more platform-native.

The accepted practice is to leave the theme up to the user, not the application developer. Some users install special themes because of impaired vision or such like, and they won t appreciate it if you force another theme on them.

问题回答

I can t say I do know a lot about coding, but I d say that you could hard code that specific theme and/or theme behaviour in your application to prevent it to look improperly on someone else s computer.





相关问题
What are some things Mono is not a good fit for?

I ve started your typical web project from scratch using the Mono platform. You know, web services, a UI, MySQL database, all that. I ve heard around the net that it s not a picture-perfect ...

How Reliable is Mono on Linux vs .NET on Windows?

I am trying to decide upon using Mono with C# or Python (Django) for a Linux based Web Site. My concern with C# is that Mono may not be as reliable as .NET. Does anyone have any experience with this?

System.Data in Mono

Has System.Data in Mono been expanded to include extra functionality? I m attempting to make use of the SQL Parser written for Mono in Mono.Data.SqlExpressions but when all the classes in the ...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to look up an icon for. Is there a GNOME C# API function which ...

ASP.NET MVC 2 on mono

Is it possible to run the new ASP.NET MVC 2 Preview 2 on mono?

热门标签