35 references to ColorExtensions
Microsoft.Maui (9)
Handlers\Button\ButtonHandler.iOS.cs (1)
66
config.BaseBackgroundColor =
ColorExtensions
.BackgroundColor;
Platform\iOS\ContainerViewController.cs (1)
77
View.BackgroundColor =
ColorExtensions
.BackgroundColor;
Platform\iOS\LabelExtensions.cs (1)
14
platformLabel.TextColor = textColor.ToPlatform(defaultColor ??
ColorExtensions
.LabelColor);
Platform\iOS\MauiTextView.cs (1)
129
TextColor =
ColorExtensions
.PlaceholderColor,
Platform\iOS\SearchBarExtensions.cs (1)
67
var foregroundColor = placeholderColor ??
ColorExtensions
.PlaceholderColor.ToColor();
Platform\iOS\TextFieldExtensions.cs (1)
21
textField.TextColor = textColor.ToPlatform(
ColorExtensions
.LabelColor);
Platform\iOS\TextViewExtensions.cs (2)
22
textView.TextColor =
ColorExtensions
.LabelColor;
140
textView.PlaceholderTextColor = editor.PlaceholderColor?.ToPlatform() ??
ColorExtensions
.PlaceholderColor;
Platform\iOS\ViewExtensions.cs (1)
92
platformView.BackgroundColor =
ColorExtensions
.BackgroundColor;
Microsoft.Maui.Controls (26)
Application\Application.cs (1)
232
return
ColorExtensions
.AccentColor.ToColor();
Compatibility\Handlers\iOS\FrameRenderer.cs (2)
114
_actualView.Layer.BackgroundColor = Microsoft.Maui.Platform.
ColorExtensions
.BackgroundColor.CGColor;
133
backgroundLayer.BackgroundColor =
ColorExtensions
.BackgroundColor.CGColor;
Compatibility\Handlers\ListView\iOS\CellRenderer.cs (1)
124
uiBgColor = Microsoft.Maui.Platform.
ColorExtensions
.GroupedBackground;
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (2)
39
context.SetFillColor(Microsoft.Maui.Platform.
ColorExtensions
.Red.CGColor);
43
context.SetFillColor(Microsoft.Maui.Platform.
ColorExtensions
.LightGray.CGColor);
Compatibility\Handlers\ListView\iOS\EntryCellRenderer.cs (1)
16
static readonly Color DefaultTextColor = Microsoft.Maui.Platform.
ColorExtensions
.LabelColor.ToColor();
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (1)
725
Control.SeparatorColor = color?.ToPlatform() ?? Microsoft.Maui.Platform.
ColorExtensions
.SeparatorColor;
Compatibility\Handlers\ListView\iOS\TextCellRenderer.cs (2)
12
readonly Color DefaultDetailColor = Microsoft.Maui.Platform.
ColorExtensions
.SecondaryLabelColor.ToColor();
13
readonly Color DefaultTextColor = Microsoft.Maui.Platform.
ColorExtensions
.LabelColor.ToColor();
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (2)
719
var color = Element.BackgroundColor == null ? Maui.Platform.
ColorExtensions
.BackgroundColor : Element.BackgroundColor.ToPlatform();
763
navigationBarAppearance.BackgroundColor = Maui.Platform.
ColorExtensions
.BackgroundColor;
Compatibility\Handlers\Shell\iOS\SearchHandlerAppearanceTracker.cs (1)
200
var placeHolderColor = targetColor ?? Microsoft.Maui.Platform.
ColorExtensions
.PlaceholderColor.ToColor();
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (1)
237
View.BackgroundColor = backgroundImage is not null ? UIColor.FromPatternImage(backgroundImage) : color?.ToPlatform() ?? Maui.Platform.
ColorExtensions
.BackgroundColor;
Compatibility\Handlers\Shell\iOS\ShellFlyoutRenderer.cs (1)
326
TapoffView.BackgroundColor = Microsoft.Maui.Platform.
ColorExtensions
.BackgroundColor.ColorWithAlpha(0.5f);
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
360
color = Microsoft.Maui.Platform.
ColorExtensions
.BackgroundColor;
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (1)
241
BackgroundColor = Microsoft.Maui.Platform.
ColorExtensions
.OpaqueSeparatorColor,
Handlers\Items\iOS\DefaultCell.cs (1)
22
TextColor = Maui.Platform.
ColorExtensions
.LabelColor,
Handlers\Items\iOS\ItemsViewCell.cs (1)
20
BackgroundColor = Maui.Platform.
ColorExtensions
.Gray
Handlers\Items\iOS\TemplatedCell.cs (2)
347
if (
ColorExtensions
.AreEqual(SelectedBackgroundView.BackgroundColor,
ColorExtensions
.Gray) && IsUsingVSMForSelectionColor(view))
Handlers\Items2\iOS\DefaultCell2.cs (1)
24
TextColor = Maui.Platform.
ColorExtensions
.LabelColor,
Handlers\Items2\iOS\ItemsViewCell2.cs (1)
20
BackgroundColor = Maui.Platform.
ColorExtensions
.Gray
Handlers\Items2\iOS\TemplatedCell2.cs (2)
256
if (
ColorExtensions
.AreEqual(SelectedBackgroundView.BackgroundColor,
ColorExtensions
.Gray) && IsUsingVSMForSelectionColor(view))
Platform\iOS\ControlsModalWrapper.cs (1)
195
View!.BackgroundColor = modalBkgndColor?.ToPlatform() ?? Maui.Platform.
ColorExtensions
.BackgroundColor;