user-preferences

Vista/7: How to get glass color?

流过昼夜 提交于 2020-01-26 09:39:02
问题 How do you use DwmGetColorizationColor? The documentation says it returns two values: a 32-bit 0xAARRGGBB containing the color used for glass composition a boolean parameter that is true "if the color is an opaque blend" ( whatever that means ) Here's a color that i like, a nice puke green: You can notice the color is greeny, and the translucent title bar (against a white background) shows the snot color very clearly: i try to get the color from Windows: DwmGetColorizationColor

WPF version of .ScaleControl?

我的梦境 提交于 2020-01-04 06:01:22
问题 What is the WPF version of Control.ScaleControl? i am trying to honor the user's font preference by setting the font to the IconTitleFont: private void ApplyUserFontPreferences() { this.FontFamily = SystemFonts.IconFontFamily; this.FontSize = SystemFonts.IconFontSize; this.FontStyle = SystemFonts.IconFontStyle; this.FontWeight = SystemFonts.IconFontWeight; } Unlike WinForms, the contents of the form are not scaled with the font change: Before After (bad) In reality all controls on the form

Finding the preferred application for a given file extension via unix shell commands

强颜欢笑 提交于 2019-12-19 10:11:37
问题 this may not be strictly about programming, but if I find no ready-made solution it may become a programming task: On UNIX, what is a command-line method for determining the user-preferred application for a given filetype? My ideal solution here would be a command that stopped me having to do the following: okular foo.pdf And allowed me to do something like this, working with my set preferred applications: launch foo.pdf I found no answer by searching, and a DIY approach wouldn't work as,

NHibernate Web Application - Managing User Preferences

笑着哭i 提交于 2019-12-11 04:31:56
问题 I've got a web application with an NHibernate Data Access Layer. I have a large number of user preferences that can be stored, these are mainly booleans for example registering that a dialog has been dismissed and should not be showed again. The problem is that with NHibernate I need to add to my database schema, and add a property to the persistent class every time a new dialog is added to register if it has been dismissed or not. There must be an easier way. What is it? 回答1: Another option

Windows Ribbon Framework: How to change font face and size?

Deadly 提交于 2019-12-04 18:53:41
问题 How do you change the font face and font size used by the Windows Ribbon Framwork's UIRibbon? The font used by the ribbon does not match the font the user has chosen as their Windows preferences - which is the preference my application uses. This means that as the font in Windows gets bigger, the ribbon gets smaller. Notice how the ribbon gets smaller in each screenshot: Segoe UI 9pt (Windows default) Segoe UI 12pt (what i use) Segoe UI 16pt (what customer's use) You can see by the time we

Windows Ribbon Framework: How to change font face and size?

梦想与她 提交于 2019-12-03 13:14:57
How do you change the font face and font size used by the Windows Ribbon Framwork 's UIRibbon? The font used by the ribbon does not match the font the user has chosen as their Windows preferences - which is the preference my application uses. This means that as the font in Windows gets bigger, the ribbon gets smaller. Notice how the ribbon gets smaller in each screenshot: Segoe UI 9pt (Windows default) Segoe UI 12pt (what i use) Segoe UI 16pt (what customer's use) You can see by the time we get to 16pt, the text on the ribbon is quite hard to read. Background The user can configure Windows to

Finding the preferred application for a given file extension via unix shell commands

时光毁灭记忆、已成空白 提交于 2019-12-01 10:11:18
this may not be strictly about programming, but if I find no ready-made solution it may become a programming task: On UNIX, what is a command-line method for determining the user-preferred application for a given filetype? My ideal solution here would be a command that stopped me having to do the following: okular foo.pdf And allowed me to do something like this, working with my set preferred applications: launch foo.pdf I found no answer by searching, and a DIY approach wouldn't work as, while I've been using Linux for a while, I have no clue of the internals that manage my preferred

Storing iPhone application settings in app

旧街凉风 提交于 2019-11-30 01:45:33
My iPhone app has few settings that users is likely to change quite often. I would like to know if there's any suggested way of handling such settings (reading and saving them). On Apple sites I found only a tutorial about integrating your application settings with Settings app ( link ) but I don't want a user to exit my app so he could just change the option. Is there any default mechanism to handle such settings in app itself or do I have to implement a solution of my own? Best and easiest way to store settings in the iPhone is through NSUserDefaults . Keeps you from having to deal with the

Storing iPhone application settings in app

天大地大妈咪最大 提交于 2019-11-28 22:33:24
问题 My iPhone app has few settings that users is likely to change quite often. I would like to know if there's any suggested way of handling such settings (reading and saving them). On Apple sites I found only a tutorial about integrating your application settings with Settings app (link) but I don't want a user to exit my app so he could just change the option. Is there any default mechanism to handle such settings in app itself or do I have to implement a solution of my own? 回答1: Best and

How to get programmatically the data usage limit set by user on Android OS configuration?

两盒软妹~` 提交于 2019-11-27 20:38:33
User can define at Data Usage screen a limite and/or a warning limit for mobile data usage. So how can I get this information by code? Screen of Data Usage configuration of native OS. I wanna the limit value and warning value. I've already tried this but not work and always return NULL to both: final Long recommendedBytes = DownloadManager.getRecommendedMaxBytesOverMobile( this.context ); final Long maximumBytes = DownloadManager.getMaxBytesOverMobile( this.context ); // recommendedBytes and maximumBytes are NULL And TrafficStats class just have a data transferred not the limits. Marcelo Filho