-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86b8168
commit 6b4a6f5
Showing
476 changed files
with
5,729 additions
and
39 deletions.
There are no files selected for viewing
Binary file added
BIN
+452 Bytes
...er/cache/objects/00/44d68b10bf280af221ad2198fddda1e8b0455f3ac2093f9f53d2018de40c69.commit
Binary file not shown.
81 changes: 81 additions & 0 deletions
81
...lder/cache/objects/00/db26de952840a55fbdf01f43d43261575ffea79d0385eee5ab1092af7c813b.file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
public class Tempo : Gtk.Application { | ||
|
||
public Tempo () { | ||
|
||
Object ( | ||
application_id: "com.github.dcharles525.tempo", | ||
flags: ApplicationFlags.FLAGS_NONE | ||
); | ||
|
||
} | ||
|
||
protected override void activate () { | ||
|
||
GLib.Settings settings = new GLib.Settings ( | ||
"com.github.dcharles525.tempo" | ||
); | ||
Gtk.CssProvider cssProvider = new Gtk.CssProvider (); | ||
|
||
Gtk.Settings.get_default ().set ( | ||
"gtk-application-prefer-dark-theme", | ||
true | ||
); | ||
|
||
try { | ||
|
||
cssProvider.load_from_resource ("/com/github/dcharles525/Tempo/stylesheet"); | ||
Gtk.StyleContext.add_provider_for_screen ( | ||
Gdk.Screen.get_default (), | ||
cssProvider, | ||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION | ||
); | ||
|
||
} catch (Error e) { | ||
|
||
error ("Cannot load CSS stylesheet: %s", e.message); | ||
|
||
} | ||
|
||
Gtk.HeaderBar headerbar = new Gtk.HeaderBar () { | ||
title = "Tempo" | ||
}; | ||
|
||
var headerContext = headerbar.get_style_context (); | ||
headerContext.add_class (Gtk.STYLE_CLASS_FLAT); | ||
|
||
Gtk.ApplicationWindow mainWindow = new Gtk.ApplicationWindow (this) { | ||
default_height = 200, | ||
default_width = 200, | ||
title = _("Tempo"), | ||
resizable = false | ||
}; | ||
|
||
TempText tempText = new TempText (); | ||
|
||
mainWindow.set_titlebar (headerbar); | ||
mainWindow.add (tempText.get_box ()); | ||
mainWindow.move ( | ||
settings.get_value ("x").get_int32 (), | ||
settings.get_value ("y").get_int32 () | ||
); | ||
mainWindow.show_all (); | ||
mainWindow.set_keep_above (true); | ||
mainWindow.configure_event.connect(() => { | ||
|
||
int x, y; | ||
mainWindow.get_position (out x, out y); | ||
settings.set_value ("x", x); | ||
settings.set_value ("y", y); | ||
return false; | ||
|
||
}); | ||
|
||
} | ||
|
||
public static int main (string[] args) { | ||
|
||
return new Tempo ().run (args); | ||
|
||
} | ||
|
||
} |
Binary file added
BIN
+74 Bytes
...r/cache/objects/00/dddc7269dcc1b3d7a9f6efe6694080d24313e625404ed976f19006d5e2fe23.dirtree
Binary file not shown.
Binary file added
BIN
+145 Bytes
...r/cache/objects/01/2d972837b68955e2990880fe417cf9121d166eb96e783461c27f3e66b27a7a.dirtree
Binary file not shown.
Binary file added
BIN
+154 Bytes
...r/cache/objects/01/cd8858a3ea4502b5717109b4599240b0e171bb1dcae59490730a77f67af8ac.dirtree
Binary file not shown.
Binary file added
BIN
+684 Bytes
...er/cache/objects/02/b100f15a9d16ee51e49bab830ef243e243ba1ce6221578de8caf13c9c5da75.commit
Binary file not shown.
Binary file added
BIN
+620 Bytes
...er/cache/objects/03/98ada35ac0cd0b811c32e930b3f3198652c3971603337783d2b22303bc78df.commit
Binary file not shown.
Binary file added
BIN
+216 Bytes
...r/cache/objects/07/1bab062e75b8067a5638ff47cacdbbb70a3629b37f9ca06015d63814b2fd81.dirtree
Binary file not shown.
Binary file added
BIN
+620 Bytes
...er/cache/objects/07/2aa5dc74736192a2a5b28e7a79fc37799a0fae3dc78e90adfe4ff6cbc7fdb7.commit
Binary file not shown.
Binary file added
BIN
+1.08 KB
...er/cache/objects/08/26d6d9e127cdecfa47afa91a92276c4cd7cadacd85bd76ae8ce21dd7457c8d.commit
Binary file not shown.
Binary file added
BIN
+74 Bytes
...r/cache/objects/08/8e8fe02444aa6aa63498f2e341da38eadae4aa50b0fd69e11e47b005a6db1d.dirtree
Binary file not shown.
Binary file added
BIN
+265 Bytes
...r/cache/objects/08/bf91d67b06b51547ebc9ad2d55253891474d7db1b3bce27fae674b369d2f09.dirtree
Binary file not shown.
Binary file added
BIN
+188 Bytes
...r/cache/objects/09/217841d53909b4c0dcc13c5df8f409c860435292f18665d2ac7db41794b3be.dirtree
Binary file not shown.
Binary file added
BIN
+64.5 KB
...lder/cache/objects/09/a0d847f1f35d20624e09246097e97f09584d8a71d97aded4a272d281735a38.file
Binary file not shown.
Binary file added
BIN
+115 Bytes
...r/cache/objects/09/a3bd08b2df49a6a29843d8b1e21d93186c0e026084c01391314bbf2ce61072.dirtree
Binary file not shown.
Binary file added
BIN
+74 Bytes
...r/cache/objects/0a/b2ec063f20293d9b21c4df9b23bd202617ed4ce996f9296bf036d71537d752.dirtree
Binary file not shown.
Binary file added
BIN
+692 Bytes
...er/cache/objects/0a/ea2ae7ff5731b93d0b7785e531dc4c66f77f2280a33ab425514f86b6ba151f.commit
Binary file not shown.
Binary file added
BIN
+366 Bytes
...r/cache/objects/0b/0d652882fb470933fd05c1a5fb199f08051122fc54624b9254b5cfb0eeb450.dirtree
Binary file not shown.
Binary file added
BIN
+275 Bytes
...r/cache/objects/0c/0dd9bd08ec92c14431bb68167d447453cb9c8704ada4f084611f8900fd2857.dirtree
Binary file not shown.
Binary file added
BIN
+74 Bytes
...r/cache/objects/0d/a6dcf235d17455a3b905da3e21649f0b5297feffafb8c00bd4c4bc69179e02.dirtree
Binary file not shown.
Binary file added
BIN
+684 Bytes
...er/cache/objects/0d/ee14e459a6b2a4631821739a67b7df3dc2bd4c12457e3b4d250e42d84e59bc.commit
Binary file not shown.
Binary file added
BIN
+46 Bytes
...r/cache/objects/0e/fa7f25437cd75581cb4c996e29f8c98b76ce2a6db3f8c97459752a7773d594.dirtree
Binary file not shown.
Binary file added
BIN
+216 Bytes
...r/cache/objects/11/7f7addc77f6d07ff9ff0fdbcf1d7fa26be50c5077b4c1d27f54d74707c2b83.dirtree
Binary file not shown.
Binary file added
BIN
+146 Bytes
...r/cache/objects/11/81f5b1338e67921832092d4b24989260bec4ac4d22ba558777454aea896e4f.dirtree
Binary file not shown.
Binary file added
BIN
+72 Bytes
...r/cache/objects/11/d1a442e29b31af2d5a3e5d1e111c15508e68cb82051d79f15c230b858029bf.dirtree
Binary file not shown.
Binary file added
BIN
+265 Bytes
...r/cache/objects/12/f56a3cc33ae110b0303578726e028a70f53a0659facfae4d88ce630161e491.dirtree
Binary file not shown.
Binary file added
BIN
+188 Bytes
...r/cache/objects/13/03f41e061405482c940ded67924439de9f9e5257d8472cee28f7e3a7698f12.dirtree
Binary file not shown.
Binary file added
BIN
+74 Bytes
...r/cache/objects/13/40755b560794cc39741a00819df1960ee68940c7e6456f6cca83f1d0983f01.dirtree
Binary file not shown.
Binary file added
BIN
+265 Bytes
...r/cache/objects/16/122c6ff84d849170c4139f8d65cffa918ab770112603883c308a1359e16f7b.dirtree
Binary file not shown.
Binary file added
BIN
+146 Bytes
...r/cache/objects/17/4e48d718f6ca6983af6efbf29aff8080931e088d5e63f378d12245887d4295.dirtree
Binary file not shown.
81 changes: 81 additions & 0 deletions
81
...lder/cache/objects/18/25dbd22b265b64462e2275c54cb24bd2ecd7701c505cc16d1ad28c47d3764a.file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
public class Tempo : Gtk.Application { | ||
|
||
public Tempo () { | ||
|
||
Object ( | ||
application_id: "com.github.dcharles525.tempo", | ||
flags: ApplicationFlags.FLAGS_NONE | ||
); | ||
|
||
} | ||
|
||
protected override void activate () { | ||
|
||
GLib.Settings settings = new GLib.Settings ( | ||
"com.github.dcharles525.tempo" | ||
); | ||
Gtk.CssProvider cssProvider = new Gtk.CssProvider (); | ||
|
||
Gtk.Settings.get_default ().set ( | ||
"gtk-application-prefer-dark-theme", | ||
true | ||
); | ||
|
||
try { | ||
|
||
cssProvider.load_from_resource ("/com/github/dcharles525/Tempo/style.css"); | ||
Gtk.StyleContext.add_provider_for_screen ( | ||
Gdk.Screen.get_default (), | ||
cssProvider, | ||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION | ||
); | ||
|
||
} catch (Error e) { | ||
|
||
error ("Cannot load CSS stylesheet: %s", e.message); | ||
|
||
} | ||
|
||
Gtk.HeaderBar headerbar = new Gtk.HeaderBar () { | ||
title = "Tempo" | ||
}; | ||
|
||
var headerContext = headerbar.get_style_context (); | ||
headerContext.add_class (Gtk.STYLE_CLASS_FLAT); | ||
|
||
Gtk.ApplicationWindow mainWindow = new Gtk.ApplicationWindow (this) { | ||
default_height = 200, | ||
default_width = 200, | ||
title = _("Tempo"), | ||
resizable = false | ||
}; | ||
|
||
TempText tempText = new TempText (); | ||
|
||
mainWindow.set_titlebar (headerbar); | ||
mainWindow.add (tempText.get_box ()); | ||
mainWindow.move ( | ||
settings.get_value ("x").get_int32 (), | ||
settings.get_value ("y").get_int32 () | ||
); | ||
mainWindow.show_all (); | ||
mainWindow.set_keep_above (true); | ||
mainWindow.configure_event.connect(() => { | ||
|
||
int x, y; | ||
mainWindow.get_position (out x, out y); | ||
settings.set_value ("x", x); | ||
settings.set_value ("y", y); | ||
return false; | ||
|
||
}); | ||
|
||
} | ||
|
||
public static int main (string[] args) { | ||
|
||
return new Tempo ().run (args); | ||
|
||
} | ||
|
||
} |
Binary file added
BIN
+1.08 KB
...er/cache/objects/18/ea9b6b067e6f070d3f5a6fc0234a41c582aa36d0d9f67cc7bf62a104e7a722.commit
Binary file not shown.
Binary file added
BIN
+154 Bytes
...r/cache/objects/18/fae0d17f557fcd347b02fc84f1d58e2cdca47d535d7d2d1c1053c3ed2ba5ec.dirtree
Binary file not shown.
Binary file added
BIN
+1.08 KB
...er/cache/objects/19/6d3fe40a43784bf82ec882bfcb148af896f8f0dba2b3037746333fe9ce2304.commit
Binary file not shown.
Binary file added
BIN
+265 Bytes
...r/cache/objects/19/b47d64d0bf53c27054935890e8920bd9ea9b30b3fb37ec9dd12f1e10e47f44.dirtree
Binary file not shown.
Binary file added
BIN
+1012 Bytes
...er/cache/objects/1b/049b37b4e177cc71d67d53c6cc301c7f5c0465227f78eecc54bd982b34b725.commit
Binary file not shown.
Binary file added
BIN
+265 Bytes
...r/cache/objects/1b/af6717bc09950c3dcd3f8f60b6580c4ca96464e0b9936f505a6d80546a4cb2.dirtree
Binary file not shown.
Binary file added
BIN
+295 Bytes
...r/cache/objects/1b/bbf0fbeba725004e88bacf1fc32dc93195cc675f8366a0165f154c7ce9ac51.dirtree
Binary file not shown.
Binary file added
BIN
+70 Bytes
...r/cache/objects/1c/0184992d3c462e80c705cc873ad56dd57c7d19228688bb3375a3945d94ae11.dirtree
Binary file not shown.
Binary file added
BIN
+620 Bytes
...er/cache/objects/1c/ed993ee59f9fa605c025bc804a54ad0a5dbacdf096bfb82192d133bfdc3505.commit
Binary file not shown.
Binary file added
BIN
+1 KB
...er/cache/objects/1d/18db043cfb64ca729242e03084e9c6795836e4b557051217f84c49ca22136f.commit
Binary file not shown.
Binary file added
BIN
+1.04 KB
...er/cache/objects/1d/ad607ed2204197b0df78d8112913b34a65d1dd7e8f6be1360796d31fb8213a.commit
Binary file not shown.
Binary file added
BIN
+1.08 KB
...er/cache/objects/1d/e75e13be0ea70b4ae93382ab222c15d1d2c511e4bb6d55c7a31ff855c55efe.commit
Binary file not shown.
Binary file added
BIN
+295 Bytes
...r/cache/objects/1e/057557611e397d1b32eecc244cd296c15393df7faf7a554bade9a1a971d03d.dirtree
Binary file not shown.
Binary file added
BIN
+216 Bytes
...r/cache/objects/1e/8755ff862a7bb72193fb66c8a615d9835621b6d0e720b2aa5047300c0c56da.dirtree
Binary file not shown.
Binary file added
BIN
+191 Bytes
...r/cache/objects/1e/a9bf64c33572874b0887ce78a0cf9f1062336b11924f8ddb1e5ab01732afab.dirtree
Binary file not shown.
Binary file added
BIN
+1012 Bytes
...er/cache/objects/1f/5373e4412949a61e4079ee7531639eed3e5d7cbfde9038fe82a8418cc885b3.commit
Binary file not shown.
Binary file added
BIN
+1.02 KB
...er/cache/objects/20/216b5501de464cc0f017efea5655642fadace97679132a5776a297c09cbf3b.commit
Binary file not shown.
Binary file added
BIN
+64 Bytes
...r/cache/objects/20/8f2214bb699a05c40bc159b5c964f766db418d70d3281e7cfcf1672eeb8e46.dirtree
Binary file not shown.
Binary file added
BIN
+188 Bytes
...r/cache/objects/20/99df143d9568b81a5d3396317908cb39273c9f956db378025cb8e479f9b505.dirtree
Binary file not shown.
Binary file added
BIN
+64 Bytes
...r/cache/objects/21/f54581eeeaf710d7bdf02a52e9390e6d8aa27805e0549ba3ad4a9bc52d19f8.dirtree
Binary file not shown.
Oops, something went wrong.