branding

Typescript: Enforce a type to be “string literal” and not <string>

こ雲淡風輕ζ 提交于 2021-01-21 08:21:00
问题 Problem Is there a way in Typescript to define a type that is only a string literal, excluding string itself? Note that I am not talking about a certain list of string literal; for which, a simple union of "Value1" | "Value2" , or an enum type would work. I am talking about any string literal, but not string itself. Example Code type OnlyStringLiterals = ...; // <--- what should we put here? const v1: OnlyStringLiterals = "hi"; // should work const v2: OnlyStringLiterals = "bye"; // should

Typescript: Enforce a type to be “string literal” and not <string>

主宰稳场 提交于 2021-01-21 08:19:52
问题 Problem Is there a way in Typescript to define a type that is only a string literal, excluding string itself? Note that I am not talking about a certain list of string literal; for which, a simple union of "Value1" | "Value2" , or an enum type would work. I am talking about any string literal, but not string itself. Example Code type OnlyStringLiterals = ...; // <--- what should we put here? const v1: OnlyStringLiterals = "hi"; // should work const v2: OnlyStringLiterals = "bye"; // should

How to get device colors?

≡放荡痞女 提交于 2020-01-05 03:26:08
问题 I have a spinner which is in the Emulator light gray with black text also on HTC devices. On the Motorola Defy the control is dark-gray and the text is white. How can I get the default text color of the currient device? 回答1: All the customizations done by carries/manufactures are inside: android:colors android:styles android:themes If you are using a TextView you can check the default text color by creating a TextView object and calling getTextColors(). Another possibility is checking how the

Using jQuery to alter application.master pages in SharePoint

跟風遠走 提交于 2019-12-24 02:28:12
问题 We use MOSS 2007 (SharePoint) for our intranet. Recently we were tasked with supporting the branding for multiple companies on our farm. We quickly realized that the application pages (produced by a modified application.master) can't serve up multiple branded templates (other than themes). I think the right fix is to keep the default Microsoft branding on application pages (we were already working on this in dev - no modifications to files hosted on the server). As a quick fix however, I was

Proper chromium browser branding?

ⅰ亾dé卋堺 提交于 2019-12-22 00:37:49
问题 I'm working on Chromium fork. How can i replace Chromium resources and app package? Resources I've found that one day android_branding_res_dirs gn argument was introduced: @@ -43,10 +43,10 @@ # GYP: //chrome/chrome.gyp:chrome_java (resources part) android_resources("chrome_java_resources") { - resource_dirs = [ - "java/res", - "java/res_default", - ] + if (!defined(android_branding_res_dirs)) { + android_branding_res_dirs = [ "//chrome/android/java/res_chromium" ] + } + resource_dirs = [

Custom login page for Azure Active Directory

自作多情 提交于 2019-12-21 03:56:18
问题 I'm working on an application that uses Azure AD as an identity provider. It works well, but the login experience is jarring when the user is taken from my application to the https://login.microsoftonline.com Azure hosted login page. In addition to losing all application branding, the user is unlikely to know that the tenant domain suffix must be appended to their username when entering credentials (e.g. bob becomes bob@mytenant.onmicrosoft.com ). Is there any way of hosting a login page for

Overriding Variables in Multiple LESS Files

烂漫一生 提交于 2019-12-14 03:15:09
问题 We have a platform that contains several applications in one single interface. There is one general stylesheet and for performance reasons seperate ones for every application. This whole platform is branded for a couple of vendors, everyone having his own colors, etc. We do so by loading another stylesheet for the given branding that just contains the overrides of the default styles. Now we're thinking about introducing LESS to improve and organize our stylesheets. But we're struggling to

SharePoint 2013 - display the detail from a list item in a branded page, NOT the default SharePoint details page

我的梦境 提交于 2019-12-13 06:49:42
问题 I am a COMPLETE beginner when it comes to SharePoint! So, forgive my lack of knowledge. I'm sure the answer to this question is probably in a million different places on the internet somewhere. I trust StackOverflow for the best answer...! I have a SharePoint site collection that will eventually be an internet site. It is custom branded using HTML master pages and page layouts. So, I want to create a list and use that as an Announcement list. The title will be a link that, when clicked, goes

Industry standard for implementing application branding?

帅比萌擦擦* 提交于 2019-12-11 03:25:46
问题 I am currently doing prototypes to add localization and branding support to our applications. Currently, I have been able to successfully make use of the localization framework and custom cultures to support both localization and branding. Custom cultures enables me to have, say, an "en-US-BrandA" resource DLL which contains brand specific resources for the "en-US" language for "BrandA". I can also create a "ja-JP-BrandB" resource DLL to accomplish the same but this time for the "ja-JP"

How to do extreme branding/internationalization in .NET

随声附和 提交于 2019-12-07 03:02:40
问题 We are planning a pretty big application. -We want to internationalize our application for 30 countries. -In most countries 1 to 6 different brands are available. -Each combination of a certain locale like 'de' and brand like 'XXX' might occur multiple times therefore we need another identifier to get something unique: "locale_brand_siteorigin" Therefore we have .resx file like: Configurations. de.burgerking.px10 .resx The bold printed is the unique identifier. During runtime we create a: var