Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarknessFX committed Nov 7, 2024
1 parent 50c6f3f commit 9d0f5ae
Show file tree
Hide file tree
Showing 11 changed files with 1,385 additions and 0 deletions.
194 changes: 194 additions & 0 deletions programs/ToSystray/.vscode/ToSystray.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
{
"folders": [{ "path": ".." }],
"settings": {
// Zig Workspace
"files.exclude": {
"*.lnk": true,
"**/.git": true,
".gitignore": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
// VSCODE FOLDERS --------
"**/.vscode": true,
"**/.code-workspace": true,
// ZIG FOLDERS --------
"**/zig-cache": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
// ZIG FOLDERS --------
"**/zig-out": true
},
"files.watcherExclude": {
// ZIG FOLDERS --------
"**/zig-cache": true
},

// DarknessFX settings
"telemetry.telemetryLevel": "off",
"workbench.colorTheme": "Default Dark+",
"workbench.startupEditor": "none",
"workbench.colorCustomizations": {
"statusBar.background" : "#1A1A1A",
"statusBar.noFolderBackground" : "#212121",
"statusBar.debuggingBackground": "#263238",
"editorBracketHighlight.foreground1": "#888888",
"editorBracketHighlight.foreground2": "#686888",
"editorBracketHighlight.foreground3": "#688868",
"editorBracketHighlight.foreground4": "#886868",
"editorBracketHighlight.foreground5": "#686868",
},
"editor.tokenColorCustomizations": {
"comments": "#546E7A",
"functions": "#DFAB4B",
"keywords": "#367CB6",
"numbers": "#CE9178",
"strings": "#CE9178",
"types": "#2EA990",
"variables": "#7CBCDE",

"[Default Dark+]": {
"textMateRules": [
{
"scope": [
"other",
"source",
"keyword.operator",
"keyword.operator.noexcept",
"punctuation",
"punctuation.dot",
"punctuation.comma",
"punctuation.definitions",
"punctuation.definition.comment",
"punctuation.definition.tag",
"punctuation.definition.tag.html",
"punctuation.definition.tag.begin.html",
"punctuation.definition.tag.end.html",
"punctuation.section.embedded",
"punctuation.separator",
"punctuation.separator.inheritance.php",
],
"settings": {
"foreground": "#758E68",
"fontStyle": "",
}
},
{
"scope": [
"comment",
],
"settings": {
"fontStyle": "italic",
}
},
{
"scope": [
"keyword",
"keyword.control",
"keyword.other",
"keyword.other.template",
"keyword.other.substitution",
"keyword.other.unit",
"storage",
"storage.type",
"storage.modifier",
"keywordLiteral",
"keyword.literal",
"keyword.constant.default",
],
"settings": {
"fontStyle": "italic",
"foreground": "#367CB6"
}
},
{
"scope": [
"support.class",
"support.type",
"entity.name.type",
"entity.name.namespace",
"entity.other.attribute",
"entity.name.scope-resolution",
"entity.name.class",
],
"settings": {
"foreground": "#2EA990"
}
},
],
},
},
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.autoClosingBrackets": "never",
"editor.autoSurround": "never",
"editor.autoClosingQuotes": "never",
"editor.detectIndentation": false,
"editor.lightbulb.enabled": "off",
"workbench.editor.focusRecentEditorAfterClose": false,
"workbench.panel.defaultLocation": "left",
"workbench.panel.opensMaximized": "never",
"workbench.editor.tabSizing": "fixed",
"workbench.editor.tabSizingFixedMaxWidth": 140,
"workbench.sideBar.location": "right",
"debug.allowBreakpointsEverywhere": true,
"debug.onTaskErrors": "abort",
"explorer.confirmDragAndDrop": false,
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"terminal.integrated.profiles.windows": {
"Windows Terminal": {
"path": "wt",
"args": [
"-p", "cmd", "cmd"
],
"icon": "terminal-bash",
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Git Bash": {
"source": "Git Bash"
},
},
"terminal.integrated.tabs.location": "left",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"C_Cpp.vcFormat.space.groupSquareBrackets": false,
"C_Cpp.loggingLevel": "Debug",
"C_Cpp.codeAnalysis.clangTidy.codeAction.formatFixes": false,
"git.openRepositoryInParentFolders": "never",
"html.autoCreateQuotes": false,
"zig.buildFilePath": "${workspaceFolder}",
"zig.formattingProvider": "off",
"zig.checkForUpdate": false,
"zig.zls.enabled": true,
"zig.zls.highlightGlobalVarDeclarations": true,
"zig.zls.semanticTokens": "full",
"zig.zls.enableArgumentPlaceholders": false,
"zig.zls.inlayHintsExcludeSingleArgument": false,
"zig.zls.enableAutofix": false,
"zig.zls.checkForUpdate": false,
"zig.zls.enableInlayHints": false,
"zig.zls.preferAstCheckAsChildProcess": false,
},
"extensions": {
"recommendations": [
"pkief.material-icon-theme"
]
}
}
36 changes: 36 additions & 0 deletions programs/ToSystray/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppvsdbg",
"request": "launch",
"presentation": {
"hidden": false,
"group": "",
"order": 1
},
"program": "${workspaceFolder}/bin/Debug/${workspaceFolderBasename}.exe",
"args": [ "C:\\Windows\\System32\\notepad.exe", "Notepad" ],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"preLaunchTask": "${defaultBuildTask}",
"console": "integratedTerminal",
"symbolSearchPath": "${workspaceFolder}/bin/Debug/",
},
{
"name": "Debug Attach",
"type": "cppvsdbg",
"request": "attach",
"presentation": {
"hidden": true,
"group": "",
"order": 2
},
"preLaunchTask": "Zig: Run main",
"internalConsoleOptions": "openOnFirstSessionStart",
"processId": "${command:pickProcess}"
}
]
}
3 changes: 3 additions & 0 deletions programs/ToSystray/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.configureOnOpen": false
}
101 changes: 101 additions & 0 deletions programs/ToSystray/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"tasks": [{
"label": "Zig: Build",
"args": [ "build", "--summary", "all" ],
"detail": "zig build --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": true },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Safe.",
"args": [ "build", "-Doptimize=ReleaseSafe", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSafe --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Fast.",
"args": [ "build", "-Doptimize=ReleaseFast", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseFast --summary all",
"command": "zig","type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Small.",
"args": [ "build", "-Doptimize=ReleaseSmall", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSmall --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Strip.",
"args": [ ],
"detail": "zig build-exe -O ReleaseSmall -fstrip -fsingle-threaded (+ lots of options) main.zig",
"command": "buildReleaseStrip.bat", "type": "shell", "options": { "cwd": "${workspaceRoot}\\tools" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Test",
"args": [ "test", "${file}" ],
"detail": "'zig test' in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "test", "isDefault": true },
"presentation": { "group": "test", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main",
"args": [ "run", "main.zig" ],
"detail": "zig run main.zig",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": true },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (With Args)",
"args": [ "run", "main.zig", "--", "D:\\Windows\\System32\\notepad.exe", "Notepad" ],
"detail": "zig run main.zig -- ArgsForYourProgram",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Fast)",
"args": [ "run", "main.zig", "-O", "ReleaseFast" ],
"detail": "zig run main.zig -O ReleaseFast",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Safe)",
"args": [ "run", "main.zig", "-O", "ReleaseSafe" ],
"detail": "zig run main.zig -O ReleaseSafe",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Small)",
"args": [ "run", "main.zig", "-O", "ReleaseSmall" ],
"detail": "zig run main.zig -O ReleaseSmall",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run current file",
"args": [ "run", "${file}" ],
"detail": "'zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "zTime Zig: Run current file",
"args": [ "zig", "run", "${file}" ],
"detail": "'zTime zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "zTime", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Docs",
"args": [ "run", "-femit-docs", "main.zig" ],
"detail": "Generate docs from source comments.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "docs", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
}],
"version": "2.0.0"
}
4 changes: 4 additions & 0 deletions programs/ToSystray/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
##Credits

Application Icon uses https://icons8.com/icon/yEiCI6F0rUO8/tray from https://icons8.com
.PNG image converted to .ICO by https://redketchup.io/
Binary file added programs/ToSystray/ToSystray.ico
Binary file not shown.
Binary file added programs/ToSystray/ToSystray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions programs/ToSystray/ToSystray.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include "windows.h"

IDI_ICON1 ICON "ToSysTray.ico"

1 VERSIONINFO
FILEVERSION 0,9,0,0
PRODUCTVERSION 0,9,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x1L
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "ToSysTray"
VALUE "FileDescription", "ToSysTray"
VALUE "FileVersion", "0.9.0.0"
VALUE "InternalName", "ToSysTray.exe"
VALUE "LegalCopyright", "Copyleft(c)"
VALUE "OriginalFilename", "ToSysTray.exe"
VALUE "ProductName", "ToSysTray"
VALUE "ProductVersion", "0.9.0.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
Loading

0 comments on commit 9d0f5ae

Please sign in to comment.