-
... align_(\center) .stringColor_(Color(1.0, 0.0, 0.0)) .background_(Color(0,0,0)) .font_(GUI.font.new("Optima", 24)) ; r = Task.new({ arg i ; loop({ clockField.string_((thisThread.seconds-runner.startTime).asTimeString) ; 1.wait })// a clock r ...
-
... ", Color.white, Color(0.9, 0.5, 0.3)]]; muteButton.canFocus = false; muteButton.font_(options.font); if(Server.default.volume.isMuted){muteButton.value = 1}; muteButton.action = { arg button; if(button.value == 0, {Server.default.unmute}, { ...
-
... r_ to background_ //ctrl click to reset volume to 0db //--todo: //* colours and font from skin? RedDiskInPlayer { var <sampler, <isPlaying= false, <soundFiles, <win; var playIndex, bgcol, fgcol, incdecTask; var incView, decView, progressVie ...
-
... Parent, argBounds; var widgetHeight, widgetWidth, marginX, marginY, gapX, gapY, font; font = Font("Arial", 20); ctkPEvent = argCtkPEvent; parent = argParent; bounds = argBounds ?? {Rect(20, Window.screenBounds.height, width = 400, height = ...
-
... ize * 8 + 10, 16)) .string_(text) .align_(\left) .background_(Color.grey(0.9)) .font_(Font("Helvetica", 12)); tooltipWindow.front; }); }; // Función para ocultar el tooltip hideTooltip = { if (tooltipWindow.notNil) { "Closing tooltip...".po ...
-
... erSize, this.bounds.width, borderSize)); }; } stringCenteredIn { |string, rect, font, color, direction = \right| if(direction == \top) { Pen.rotate( 0.5pi.neg, rect.left + (rect.width / 2), rect.top + (rect.height / 2) ); }; if(direction == ...
-
... ivatedColor, <>deactivatedColor, <>emphasisFillColor, <>passiveModeColor; var <>font, <>zoomRatio = 1.1, <>scrollRatio = 0.125, <>minNumLines = 5, <>lineHeight; var <>keepFront = true; // if GUI opens in score, keep to front var <>keepCurso ...
-
... but not guaranteed. ****************************/ w = Window("test").front; f = Font(Font.defaultMonoFace, 24); w.layout = HLayout( VLayout( *~lefts = [ \slot1, \slot2, \slot3, \slot4] .collect { |name, i| Button(w).states_([[name], [name, ...
-
... ounds.width-400, 0, 400, 200); //x, y, w, h var palette= SGUI.palette; var fnt= Font.monospace(10); var volumeSpec= ControlSpec(-inf, 10, 'db', 0.0, 0.0, "dB"); var snapshotKeys= #[ //more can be added [$A, $S, $D, $F, $G, $H, $J, $K], [$Z, ...
-
... UI.staticText.new(window, Rect(0, 0, 430, 100)) .string_(cursecs.asTimeString) .font_(Font("Arial", 40)); window.onClose_({this.stop}); } }