Пример #1
0
        public TimerEditViewController()
        {
            InitializeComponent();

            descriptionTextBox.autoCompleteListBox.KeyDown += autoCompleteListBox_KeyDown;
            descriptionTextBox.autoCompleteListBox.Click   += autoCompleteListBox_Click;
            textBoxDuration.Top    = (Height / 2) - (linkLabelDuration.Height / 2);
            descriptionTextBox.Top = (Height / 2) - (descriptionTextBox.Height / 2);
            defaultDescriptionTop  = descriptionTextBox.Top;
            projectDescriptionTop  = defaultDescriptionTop - (descriptionTextBox.Height / 2);

            Toggl.OnMinitimerAutocomplete += OnTimeEntryAutocomplete;
            Toggl.OnRunningTimerState     += OnRunningTimerState;
            Toggl.OnStoppedTimerState     += OnStoppedTimerState;

            Anchor = (AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top);

            this.textBoxDuration.BackAlpha = 0;

            TogglForm.ApplyFont("roboto", this.descriptionTextBox);
            TogglForm.ApplyFont("roboto", this.buttonStart);
            TogglForm.ApplyFont("roboto-light", this.DurationTextBox);
            TogglForm.ApplyFont("roboto", this.linkLabelDescription);
            TogglForm.ApplyFont("roboto-light", this.linkLabelDuration);
            TogglForm.ApplyFont("roboto", this.linkLabelProject);
        }
Пример #2
0
        public TimeEntryCell(TimeEntryListViewController listContainer)
        {
            list = listContainer;
            InitializeComponent();

            this.defaultColor = this.panel.BackColor;

            TogglForm.ApplyFont("roboto", this.labelFormattedDate);
            TogglForm.ApplyFont("roboto", this.labelDateDuration);
            TogglForm.ApplyFont("roboto-medium", this.labelProject);
            TogglForm.ApplyFont("roboto-medium", this.labelClient);
            TogglForm.ApplyFont("roboto", this.labelTask);
            TogglForm.ApplyFont("roboto", this.labelDescription);
            TogglForm.ApplyFont("roboto-light", this.labelDuration);
        }
Пример #3
0
        public LoginViewController()
        {
            InitializeComponent();

            email.EmptyText    = "Your email address";
            password.EmptyText = "Password";

            confirmButton.Click += (o, e) => confirm();
            email.KeyUp         += textFieldKeyUp;
            password.KeyUp      += textFieldKeyUp;

            setConfirmAction(ConfirmAction.LogIn);

            TogglForm.ApplyFont("roboto", googleLoginTextField);
            TogglForm.ApplyFont("roboto", passwordForgotTextField);
            TogglForm.ApplyFont("roboto", loginSignupToggleLabel);
            TogglForm.ApplyFont("roboto", loginSignupToggle);

            centerControl(googleLoginTextField);
            centerControl(loginSignupToggleLabel);
            centerControl(loginSignupToggle);
        }