public Task <ImageBuffer> GetThumbnail(int width, int height)
        {
            if (width < 24 && height < 24)
            {
                return(Task.FromResult(microIcon?.AlphaToPrimaryAccent()));
            }

            //return Task.FromResult(thumbnail);
            return(Task.FromResult(thumbnail?.AlphaToPrimaryAccent()));
        }
        public Task <ImageBuffer> GetThumbnail(int width, int height)
        {
            if (microIcon != null &&
                width < 24 * GuiWidget.DeviceScale &&
                height < 24 * GuiWidget.DeviceScale)
            {
                return(Task.FromResult(microIcon?.AlphaToPrimaryAccent()));
            }

            return(Task.FromResult(thumbnail?.AlphaToPrimaryAccent()));
        }
예제 #3
0
 public Task <ImageBuffer> GetThumbnail(int width, int height)
 {
     //return Task.FromResult(thumbnail);
     return(Task.FromResult(thumbnail?.AlphaToPrimaryAccent()));
 }