Skip to content

Instantly share code, notes, and snippets.

View fieldOfView's full-sized avatar

Aldo Hoeben fieldOfView

View GitHub Profile
@fieldOfView
fieldOfView / theme.json
Created May 20, 2022 11:17
A less-contrasty dark theme for Cura 5.0
{
"metadata": {
"name": "Ultimaker Darkish",
"inherits": "cura-dark"
},
"base_colors":
{
"background_1": [39, 44, 48, 255],
"background_2": [47, 53, 58, 255],
@fieldOfView
fieldOfView / theme.json
Last active November 11, 2022 22:25
A stub theme for Cura that has custom colors in layer view
{
"metadata": {
"name": "Ultimaker Dark custom layerview colors",
"inherits": "cura-dark"
},
"colors": {
"layerview_ghost": [31, 31, 31, 95],
"layerview_none": [255, 255, 255, 255],
"layerview_inset_0": [29, 200, 200, 255],
@fieldOfView
fieldOfView / overhang.shader
Last active August 28, 2020 08:15
Patched version of overhang.shader that highlights the parts of models that touch the builtplate
[shaders]
vertex =
uniform highp mat4 u_modelMatrix;
uniform highp mat4 u_viewMatrix;
uniform highp mat4 u_projectionMatrix;
uniform highp mat4 u_normalMatrix;
attribute highp vec4 a_vertex;
attribute highp vec4 a_normal;
@fieldOfView
fieldOfView / theme.json
Created May 17, 2020 16:42
A stub theme for Cura that has non-transparent helpers in layer view
{
"metadata": {
"name": "Ultimaker Dark non-transparent helpers",
"inherits": "cura-dark"
},
"colors": {
"layerview_support": [0, 255, 255, 255],
"layerview_support_infill": [0, 255, 255, 255],
"layerview_support_interface": [63, 127, 255, 255]
@fieldOfView
fieldOfView / theme.json
Created October 24, 2019 15:32
A stub theme for Cura that has larger text
{
"metadata": {
"name": "Ultimaker Larger",
"inherits": "cura-light"
},
"fonts": {
"default": {
"size": 1.1,
"weight": 40,
@fieldOfView
fieldOfView / NetworkMJPGImage
Created October 25, 2018 20:27
A PyQt 5 custom QML widget to display MJPEG streams such as those created by mjpegstreamer
# Copyright (c) 2018 Aldo Hoeben / fieldOfView
# NetworkMJPGImage is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QUrl, pyqtProperty, pyqtSignal, pyqtSlot, QRect, QByteArray
from PyQt5.QtGui import QImage, QPainter
from PyQt5.QtQuick import QQuickPaintedItem
from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply, QNetworkAccessManager
from UM.Logger import Logger
@fieldOfView
fieldOfView / ultimaker2_mag.def.json
Created August 27, 2018 13:02
A variation of the Ultimaker 2 definition for Cura 2 and newer that has no disallowed areas
{
"version": 2,
"name": "Ultimaker 2 Magnetic",
"inherits": "ultimaker2",
"metadata": {
"quality_definition": "ultimaker2"
},
"overrides": {
"machine_disallowed_areas": {
@fieldOfView
fieldOfView / Replacement_Patterns.html
Created July 30, 2018 21:37
A quick and dirty overview of available settings and replacement patterns
<html>
<head>
<meta charset="utf-8"/>
<title>Settings and replacement patterns</title>
<script type="text/javascript">
function showJSON(file) {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', file, false);
xobj.onreadystatechange = function () {
@fieldOfView
fieldOfView / custom_belt_printer.def.json
Created July 26, 2018 12:55
A definition for a custom belt-style printer, to be used with BlackBelt Cura 3.4.2
{
"version": 2,
"name": "Custom belt-printer",
"inherits": "beltprinter",
"metadata": {
"visible": true,
"author": "fieldOfView",
"manufacturer": "Custom",
"category": "Custom",
"file_formats": "text/x-gcode",
@fieldOfView
fieldOfView / theme.json
Created March 15, 2018 19:17
A stub theme for Cura that has dark text on medium grey tooltips
{
"metadata": {
"name": "Grey tooltips",
"inherits": "cura-light"
},
"colors": {
"tooltip_text": [8, 0, 0, 255],
"button_tooltip": [225, 225, 225, 255],
"tooltip": [225, 225, 225, 255]