Unplated icon for MSIX-packed Win32-application doesn't work - c++

I am trying to generate a MSIX-installer for a Win32-OpenGL-application, which is supposed to be deployed in Microsoft Store. Therefore, I have first built the .exe-file in Visual Studio and packed it with MSIX Packaging Tool to a .msix-installer. After that, I edited the .msix-package and added the required images (Square44x44Logo.png, Square71x71Logo.png,...). Unfortunately, I found out that the icon in the task bar was plated. I tried to add another image (Square44x44Logo.targetsize-44_altform-unplated.png) to the .msix-package by editing it again with the MSIX Packaging Tool, but the task bar icon remained plated. How can I change my task bar icon to unplated?

Unplated assets
By default, Windows uses a target-based asset on top of a colored
backplate by default. If you want, you can provide a target-based
unplated asset. "Unplated" means the asset will be displayed on a
transparent background. Keep in mind that these assets will appear
over a variety of background colors.
Unplated assets and themes
The user's selected theme determines the color of the taskbar. If the
unplated asset isn't specifically qualified for the current theme, the
system checks the asset for contrast. If it has enough contrast with
taskbar, the system uses it. Otherwise, the system looks for a
high-contrast version of the asset. If it can't find one, the system
draws the plated form of the asset instead.
Follow the steps below to solve this problem:
Obtain the correct 44x44 images and then copy them into the folder
that contains your images (i.e., Assets).
For each 44x44 image, create a copy in the same folder and append
.targetsize-44_altform-unplated to the file name. You should have two
copies of each icon, each named in a specific way. For example, after
completing the process, your assets folder might contain
MYAPP_44x44.png and MYAPP_44x44.targetsize-44_altform-unplated.png.
In the manifest file, set the BackgroundColor for every icon you are
making transparent.
Continue to the next subsection to generate a new Package Resource
Index file.
For more details, refer: Add Target-based unplated assets
Here is a similar case for your reference.
unplated taskbar icons in Desktop Bridge apps

Related

Changing the Django-CMS default icon for links

The contents of placeholders in Django-CMS can be modified with the provided frontend editor, which includes a basic plugin for inserting links. By default, this plugin shows a square "blue globe" icon in the editor preview where the link will appear. I'd like to change what icon appears, preferably to a text representation of the link rendered as an image. Is it possible to modify the existing link plugin, or would I have to make a new plugin with this behavior?
You'll need to build your own link plugin for that which defines the icon_src method which has to return a URL to a image.

Sitecore place multiple images from library at once

Working on a project for a client. They have a PDF that has been broken into separate pages as images, and they want to have each of those images appear on a single page - at least 40 images for this one page alone.
So far, I've just been placing them individually. Each time you go to place an image using the rich editor, you start at the media root - and the way the media library has been structured, these images are buried very deep within subfolders. So it takes about 20 seconds of clicking, scrolling, and reading to find each image to place it.
These images are sequential and placed in order in the media library. Is there a way I can select a group of images and just drop them in? There are going to be literally hundreds of these, and it's a huge waste of my (and my client's) time placing images one-by-one.
Going along the lines of what TwentyGotoTen has said, I would:
Structure your images in the Media Library within folders (if you haven't already done so)
Create a sublayout/xsl rendering that contains a repeater to render the images
Add the control to the layout and set the DataSource of that control to the Media Folder
The code should then retrieve all child items from that folder and render as necessary.
You may need the use of the Sublayout Parameter Helper to access the datasource from ascx codebehind.
I'm assuming you just want the images to appear one after the other with nothing else inbetween. Rather than embedding images in rich-text perhaps you should consider creating a multilist field for the images in the template and create a rendering / sublayout to render them.
You can set a more suitable source for the multilist than the media root. This should make it a lot easier to select the images.
Mark van Aalst has created a custom image field that allows to do this a bit easier as well.
Have a read through this. This is also available on Sitecore's Marketplace: Multiple Images Selector
It will allow you to select your images through a multilist field, but it'll show the images as an image field with multiple images.
I think this is pretty much the solution TwentyGotoTen is talking about as well, but shows the thumbnail of the selected images as well.

Where are custom menu items saved?

I am creating several custom menu items in SPSS to access several custom created SPSS scripts and syntax.
In order to aviod re-creating all the menu items on every single machine. Is there a file where these menus are saved when created that can be copied and transfered to other machines?
SPSS Statistics has two different mechanisms for custom menus. If you are using View>Menu editor, the customizations are stored in the Registry (on Windows). The Registry key is version specific, and this structure can change from release to release.
For dialogs (and their menu items) created by the Custom Dialog Builder, the pieces are stored under the ext\lib directory. By default, that is under the Statistics installation directory, but it can be elsewhere according to the settings of the users SPSS_CDIALOGS_PATH environment variable or in the APPDATA area. Custom dialogs are stored as a properties file and an xml file with the same name as the dialog box. There may also be an htm help file for the dialog. If the dialog is translated, there will be localized versions of the properties and htm files stored in the same location.
On startup, Statistics searches these directories and adds the relevant menu items to the display.

Changing Django built in admin style sheet

I wish to change the built in blue colours for the admin pages.
I used Firebug in Mozilla to try and find the colours around different style sheets I found in the Django.1-3 folder, but none seem to come up.
In what directories would I find the .css files for pages that have the header dark blue colour and the light blue table captions colour?
What actions must I take in order for the changes to work(eg. move folder to main project folder)?
https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/#serving-the-admin-files
The admin files live in (django/contrib/admin/static/admin) of the Django distribution.
You have the source. You can change these files.
One common approach is to (1) copy the static admin files to a separate directory that your web server can use, (2) configure your web server to serve these files, and (3) change your settings.py to reflect this new location for your admin media.
https://docs.djangoproject.com/en/1.3/ref/settings/#admin-media-prefix
No template changes are made.
Nothing needs to be moved into your "main project folder" (whatever that might be).

Thumbnail images generated by namespace extension not receiving adornments (e.g., drop shadow)

I've written a namespace extension to represent a remote file system. IExtractImage is implemented to provide an image for the various thumbnail views supported by the Shell. This all works properly. However, I notice that the thumbnail images I generate, when displayed in the shell view, do not have any thumbnail adornments on them.
According to the MSDN documentation for thumbnail handlers:
Adornments such as drop shadows are applied to thumbnails based on the user's currently selected theme. Adornments are provided by Windows; do not create them yourself. Windows could change the look of particular adornments at any time, so if you provided you own you would risk falling out of synch with the system. Your thumbnails could wind up looking dated or out of place.
So it would appear that the Shell should be adorning the image returned by my namespace extension with the appropriate eye candy (normally, a drop shadow). However, no matter what I try, the images displayed in the shell view are exactly the image I'm returning from my interface. For the sake of covering all bases, I even tried accessing a local shell item's IThumbnailProvider and retrieving its thumbnail image. The returned image was not adorned either.
Is there some other interface I might need to implement in order for this to work properly? What am I missing?
Thanks.