Exemplo n.º 1
0
        private void load(OverlayColourProvider?colourProvider, OsuColour colours)
        {
            enabledColour  = colourProvider?.Highlight1 ?? colours.BlueDark;
            disabledColour = colourProvider?.Background3 ?? colours.Gray3;

            switchContainer.Colour = enabledColour;
            fill.Colour            = disabledColour;
        }
Exemplo n.º 2
0
        private void load(OsuColour colours, OverlayColourProvider?colourProvider)
        {
            inactiveBackgroundColour = colourProvider?.Background5 ?? colours.Gray3;
            activeBackgroundColour   = colours.ForModType(mod.Type);

            inactiveForegroundColour = colourProvider?.Background2 ?? colours.Gray5;
            activeForegroundColour   = Interpolation.ValueAt <Colour4>(0.1f, Colour4.Black, activeForegroundColour, 0, 1);
        }
Exemplo n.º 3
0
            private void load(OverlayColourProvider?colourProvider, OsuColour colours, AudioManager audio)
            {
                BackgroundColour = colourProvider?.Background5 ?? Color4.Black.Opacity(0.5f);
                HoverColour      = colourProvider?.Light4 ?? colours.PinkDarker;
                SelectionColour  = colourProvider?.Background3 ?? colours.PinkDarker.Opacity(0.5f);

                sampleOpen  = audio.Samples.Get(@"UI/dropdown-open");
                sampleClose = audio.Samples.Get(@"UI/dropdown-close");
            }
Exemplo n.º 4
0
        private void load(OverlayColourProvider?colourProvider, OsuColour colours, AudioManager audio)
        {
            enabledColour  = colourProvider?.Highlight1 ?? colours.BlueDark;
            disabledColour = colourProvider?.Background3 ?? colours.Gray3;

            switchContainer.Colour = enabledColour;
            fill.Colour            = disabledColour;

            sampleChecked   = audio.Samples.Get(@"UI/check-on");
            sampleUnchecked = audio.Samples.Get(@"UI/check-off");
        }
Exemplo n.º 5
0
        private void load(OverlayColourProvider?colourProvider, OsuColour colour, AudioManager audio)
        {
            BackgroundUnfocused = colourProvider?.Background5 ?? Colour4.Black.Opacity(0.5f);
            BackgroundFocused   = colourProvider?.Background4 ?? OsuColour.Gray(0.3f).Opacity(0.8f);
            BackgroundCommit    = BorderColour = colourProvider?.Highlight1 ?? colour.Yellow;
            selectionColour     = colourProvider?.Background1 ?? new Colour4(249, 90, 255, 255);

            if (caret != null)
            {
                caret.SelectionColour = selectionColour;
            }

            Placeholder.Colour = colourProvider?.Foreground1 ?? new Colour4(180, 180, 180, 255);

            for (int i = 0; i < textAddedSamples.Length; i++)
            {
                textAddedSamples[i] = audio.Samples.Get($@"Keyboard/key-press-{1 + i}");
            }

            capsTextAddedSample = audio.Samples.Get(@"Keyboard/key-caps");
            textRemovedSample   = audio.Samples.Get(@"Keyboard/key-delete");
            textCommittedSample = audio.Samples.Get(@"Keyboard/key-confirm");
            caretMovedSample    = audio.Samples.Get(@"Keyboard/key-movement");
        }
Exemplo n.º 6
0
 private void load(OverlayColourProvider?colourProvider, OsuColour colours)
 {
     Colour          = defaultColour = colours.Gray8;
     hoverColour     = colours.GrayF;
     highlightColour = colourProvider?.Highlight1 ?? colours.Green;
 }