private void prepareViews()
        {
            DurationLabel.Font = DurationLabel.Font.GetMonospacedDigitFont();

            centerTextVertically(TagsTextView);
            TagsTextView.TextContainer.LineFragmentPadding = 0;

            if (TraitCollection.HorizontalSizeClass == UIUserInterfaceSizeClass.Compact)
            {
                var bottomSafeAreaInset = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets.Bottom;
                if (bottomSafeAreaInset >= ButtonsContainerBottomConstraint.Constant)
                {
                    ButtonsContainerBottomConstraint.Constant = 0;
                }
            }

            DescriptionTextView.TintColor       = Colors.StartTimeEntry.Cursor.ToNativeColor();
            DescriptionTextView.PlaceholderText = Resources.AddDescription;

            TimeEntryTimes.Hidden = ViewModel.IsEditingGroup;
            GroupDuration.Hidden  = !ViewModel.IsEditingGroup;
            DurationView.Hidden   = ViewModel.IsEditingGroup;
            StartDateView.Hidden  = ViewModel.IsEditingGroup;

            DescriptionView.InsertSeparator();
            SelectProject.InsertSeparator();
            TagsContainerView.InsertSeparator();
            TimeEntryTimes.InsertSeparator();
            DurationView.InsertSeparator();
            StartDateView.InsertSeparator();
            BillableView.InsertSeparator();
            StartTimeView.InsertSeparator(UIRectEdge.Right);
        }
示例#2
0
        private void prepareViews()
        {
            projectTaskClientToAttributedString = new ProjectTaskClientToAttributedString(
                ProjectTaskClientLabel.Font.CapHeight,
                Colors.EditTimeEntry.ClientText.ToNativeColor());

            tagsListToAttributedString = new TagsListToAttributedString(TagsTextView);

            centerTextVertically(TagsTextView);
            TagsTextView.TextContainer.LineFragmentPadding = 0;

            DescriptionTextView.TintColor       = Colors.StartTimeEntry.Cursor.ToNativeColor();
            DescriptionTextView.PlaceholderText = Resources.AddDescription;
            DescriptionTextView.TextColor       = ColorAssets.Text;

            DescriptionView.InsertSeparator();
            PasteFromClipboardHintView.InsertSeparator();
            SelectProjectView.InsertSeparator();
            SelectTagsView.InsertSeparator();
            BillableView.InsertSeparator();
        }