Greasy Fork is available in English.

CoCo编辑器黑色主题

编程猫coco编辑器黑色主题,请搭配 https://greasyfork.org/zh-CN/scripts/447971-%E6%9B%B4%E5%A5%BD%E7%9C%8B%E7%9A%84coco%E7%BC%96%E8%BE%91%E5%99%A8 里的插件使用

// ==UserScript==
// @license MIT
// @name         CoCo编辑器黑色主题
// @namespace    http://tampermonkey.net/
// @version      2.10
// @description  编程猫coco编辑器黑色主题,请搭配 https://greasyfork.org/zh-CN/scripts/447971-%E6%9B%B4%E5%A5%BD%E7%9C%8B%E7%9A%84coco%E7%BC%96%E8%BE%91%E5%99%A8 里的插件使用
// @author       编程猫 SUDA编程
// @match        https://coco.codemao.cn/*
// @match        https://appcraft.codemao.cn/*
// @icon         https://coco.codemao.cn/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.head.innerHTML += `<style id="blackthemecoco">
    .PreviewArea_main__240n6 {
    flex: auto;
    background-color: #393939;
    position: relative;
    height: calc(100% - 54px);
    top: 54px;
}
.SelectedWidget_container__1_nzS {
    position: absolute;
    left: 0;
    top: -4px;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    color: #d7d7d7;
    z-index: 20;
    font-size: 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.WidgetPanel_wrapper__2VUPf {
    position: absolute;
    width: 181px;
    height: 100%;
    z-index: 5;
    border-right: 0;
    border-left: 0;
    background-color: #393939;
    overflow-y: scroll;
}
.WidgetTree_wrapper__3yHXC {
    height: 100%;
    background-color: #393939;
}
body {
    margin: 0;
    color: rgb(255 255 255 / 65%);
    font-size: 14px;
    font-family: NotoSansCJKsc,sans-serif;
    font-variant: tabular-nums;
    line-height: 1.5715;
    background-color: #1f1f1f;
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
}
.WidgetPanel_itemBlock__TqL6b {
    width: 100%;
    height: 37px;
    margin: 0 7px 7px 0;
    display: flex;
    align-items: center;
    color: #d7d7d7;
    border-radius: 0;
    cursor: pointer;
    padding: 0 0 0 10px;
}
.blocklyMainBackground{
fill: #2e2e2e !important;
}
.WidgetTree_list__9_RD0 {
    padding: 8px 0;
    color: #d7d7d7;
}
.WidgetTree_item__322OE.WidgetTree_selectedLight__2bnyj {
    background: #393939;
}
.WidgetTree_item__322OE:hover {
    background-color: #4d4d4d;
}
.EditArea_wrapper__2U_dC {
    border-radius: 15px;
    flex: auto;
    min-width: 500px;
    position: relative;
    background-color: var(--background-color);
    box-shadow: 0 5px 30px 0 #ffffff5c;
    overflow: hidden;
    display: flex;
    border: 2px solid #323232;
}
.WidgetPanel_spaceLine__3c1yS {
    margin: 0 8px;
    height: 1px;
    background-color: #535353;
}
.WidgetList_doubleColumn__34XFq .WidgetList_widgetItem__14O1V {
    display: flex;
    flex-direction: row;
    cursor: grab;
    width: 68px;
    padding-bottom: 4px;
    margin-bottom: 14px;
    vertical-align: middle;
    border-radius: 5px;
    border: 1px solid #393939;
    color: #d7d7d7;
    background-color: #4d4d4d;
    transition: box-shadow .1s ease-in-out,-webkit-transform .1s ease-in-out;
    transition: transform .1s ease-in-out,box-shadow .1s ease-in-out;
    transition: transform .1s ease-in-out,box-shadow .1s ease-in-out,-webkit-transform .1s ease-in-out;
    align-items: center;
    justify-content: center;
}
.WidgetList_categoryItem__1o_mN .WidgetList_categoryHeader__23-do {
    height: 30px;
    line-height: 30px;
    margin: 0 4px;
    background: #1f1f1f;
    justify-content: space-between;
    border-radius: 4px;
    cursor: pointer;
}
.WidgetList_categoryItem__1o_mN .WidgetList_categoryHeader__23-do:hover {
    background-color: #1f1f1f;
}
.WidgetList_categoryItem__1o_mN .WidgetList_categoryHeader__23-do .WidgetList_categoryTitle__1Z_w4 {
    line-height: 30px;
    display: block;
    color: #d7d7d7;
    margin: 0 0 0 14px;
    font-size: 12px;
    font-weight: 400;
}
.WidgetEditor_wrapper__3PjzL .WidgetEditor_content__1jTvH {
    height: 100%;
    padding: 0 6px 35px;
    background-color: #393939;
    overflow-y: scroll;
    margin-right: 1px;
}

*, :after, :before {
    box-sizing: border-box;
}
.WidgetEditor_wrapper__3PjzL .WidgetEditor_header__DcNLR {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    background: #2f2f2f;
    padding: 0 18px;
}
.WidgetEditor_wrapper__3PjzL .WidgetEditor_header__DcNLR .WidgetEditor_title__2LiDO {
    margin: 0;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 600;
    line-height: 36px;
}
.coco-form-item-label {
    color: #d7d7d7;
}
.WidgetInput_input__1QQvg {
    width: 100%;
    outline: none;
    max-width: 100%;
    background: none;
    text-align: inherit;
    font-size: 14px;
    color: #d7d7d7;
    display: flex;
    height: 32px;
    border: 1px solid #4d4d4d;
    background: #393939;
    padding: 9px 10px;
    border-radius: 4px;
}
.StyleForm_formItemWrapper__xbhBj {
    padding: 14px 12px;
    border-bottom: 1px solid #4d4d4d;
    font-size: 12px;
}
path.blocklyFlyoutBackground {
    fill: rgb(57, 57, 57) !important;
}
.blocklyFlyout {
    height: 100%;
    background-color: #393939;
    border-right: 1px solid #4d4d4d;
    box-shadow: 4px 0 6px 0 rgba(136,132,146,.08);
}
.WidgetList_tabContainer__2FoCh .WidgetList_tabNav__aT0g3 {
    width: 100%;
    height: 54px;
    background-color: #4d4d4d;
    display: flex;
    position: absolute;
    text-align: center;
}
.WidgetList_tabContainer__2FoCh .WidgetList_tabNav__aT0g3 .WidgetList_activeTab__GNm6q {
    background-color: #1f1f1f;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 500;
    color: #d7d7d7;
}
.WidgetList_tabContainer__2FoCh .WidgetList_tabNav__aT0g3 .WidgetList_activeTab__GNm6q {
    background-color: #1f1f1f;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 500;
    color: #d7d7d7;
}
.ScreenList_wrapper__nhsQ3 {
    position: absolute;
    display: flex;
    align-items: center;
    height: 54px;
    background-color: #1f1f1f;
    border-bottom: 1px solid #4d4d4d;
    z-index: 30;
}
.PreviewArea_wrapper__2g99u .PreviewArea_side__3XTRT {
    flex: none;
    white-space: nowrap;
    border-right: 1px solid #4d4d4d;
}
.Header_wrapper__3tGRg {
    width: 100%;
    height: 100%;
    background: #2e2e2e;
    box-shadow: 0 -3px 30px #2e2e2e;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.Header_projectTitleWrapper__2Fwje .Header_projectTitle__3fvYk:hover {
    background-color: #000000;
}
.Header_menu__Zy7KP .coco-dropdown-active, .Header_menu__Zy7KP .coco-dropdown-selector:hover {
    background: rgb(0 0 0);
}
.style_oTButton__3Iy-r .style_collIconWrapper__3sgII:hover {
    background: #000000;
    border-radius: 4px;
}
.Header_iconWrapper__1R5yU:active, .Header_iconWrapper__1R5yU:hover {
    background: #000000;
    border-radius: 4px;
}
.Header_packageBtn__uKJgR:not(:disabled):active, .Header_packageBtn__uKJgR:not(:disabled):hover {
    border-color: hsla(0,0%,100%,.5);
    background: #000000;
}
.PackageEditor_packageEditorContainer__20PJk .PackageEditor_footer__yZ3l8 .coco-button {
    border: 1px solid #6e4ff4;
    background-color: #2e2e2e;
    color: #ffffff;
    padding: 0;
    height: 34px;
    width: 112px;
    outline: none;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5em;
    color: rgb(255 255 255 / 85%);
    font-weight: 600;
}
.coco-dialog-title {
    width: 100%;
    height: 60px;
    background: #3e3e3e;
    box-shadow: 0 1px 6px 0 rgb(33 35 38 / 10%);
    color: #ffffff;
    line-height: 60px;
    padding-left: 35px;
}
.coco-dialog-wrapper {
    background: #4d4d4d;
    box-shadow: 0 4px 10px 0 rgb(11 24 38 / 25%);
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    -webkit-transform-origin: center;
    transform-origin: center;
    min-width: 380px;
    z-index: 2;
    overflow: hidden;
}
.PackageEditor_packageEditorContainer__20PJk .PackageEditor_iconContent__3H57G .PackageEditor_uploadIcon__2W_yp .coco-button {
width: 110px;
    height: 36px;
    border-radius: 4px;
    color: #ffffff;
    border-color: #ddd8f3;
    background: #4d4d4d;
}
.coco-dialog-footer {
    width: 100%;
    background: #4d4d4d;
    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.Notice_container__6Feqw.Notice_warn__2t0LW {
    border: 1px solid #5a5a5a;
    background: #5a5a5a;
    color: #ffffff;
    box-shadow: 0 2px 8px 0 #515151;
}
.RightSideMenu_wrapper__pn2lJ {
    height: 100%;
    width: 36px;
    padding: 14px 0;
    background-color: #414141;
    border-left: 1px solid #414141;
    z-index: 2;
}
.style_resourceLayout__1NSyP {
    width: 380px;
    height: 100%;
    z-index: 5;
    border-left: 1px solid #393939;
    background-color: #393939;
    display: flex;
    flex-direction: column;
}
.style_tab__2Kp-x {
    height: 42px;
    line-height: 41px;
    background: #393939;
    border-bottom: 1px solid #393939;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0 20px;
}
.style_tab__2Kp-x ul li.style_selected__2xBGc {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: #6e4ff4;
}
.style_header__3b4qF {
    height: 42px;
    line-height: 41px;
    background: #393939;
    border-bottom: 1px solid #393939;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.style_header__3b4qF .style_title__2_5F1 {
    margin-left: 20px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}
.style_ImageDragContainer__23PNf {
    width: 100%;
    height: 100%;
    position: relative;
    border: 0;
}
.style_ImageDragContainer__23PNf .style_ImageLayoutEmpty__3Mn_3,.style_IconDragContainer__TBKNZ .style_IconLayoutEmpty__3mWN0,.style_SoundDragContainer__3kwW- .style_SoundLayoutEmpty__OS6qn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 120px;
    width: 340px;
    background: #454545;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.style_imageLayout__3KjeS .style_imageLayoutMain__3r2Gx .style_imageLayoutList__WEik5 ul .style_uploadItem__6fZlN {
    width: 102px;
    height: 90px;
    background: #666;
    border-radius: 4px;
    border: 1px dashed #232323;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.style_imageLayout__3KjeS .style_imageLayoutMain__3r2Gx .style_imageLayoutList__WEik5 ul .style_uploadItem__6fZlN .style_content__egcOY .style_name__2xEeE {
    font-weight: 400;
    color: #ffffff;
    font-size: 12px;
    line-height: 12px;
}

i.coco-iconfont.style_icon__3MIVj svg {
    fill: #ffffff;
}
.style_imageLayout__3KjeS .style_imageLayoutMain__3r2Gx .style_imageLayoutList__WEik5 ul .style_uploadItem__6fZlN:active, .style_imageLayout__3KjeS .style_imageLayoutMain__3r2Gx .style_imageLayoutList__WEik5 ul .style_uploadItem__6fZlN:hover {
    background: #646464;
    border: 2px solid #6e4ff4;
}
.style_imageLibrary__1e22e .style_LibraryHeader__1xjgt {
    height: 60px;
    width: 100%;
    background: #3e3e3e;
    box-shadow: 0 1px 6px 0 rgb(35 33 38 / 10%);
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 1px;
}
.style_imageLibrary__1e22e .style_LibraryHeader__1xjgt .style_title__r3j-x {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 60px;
    left: 30px;
}
.style_imageLibrary__1e22e .style_LibraryContent__2NHts .style_sidebar__3YPhr {
    position: relative;
    width: 180px;
    height: 100%;
    background: #3e3e3e;
    border: 0 solid #525252;
    cursor: pointer;
    padding-top: 13px;
}

.style_imageLibrary__1e22e .style_LibraryContent__2NHts .style_sidebar__3YPhr .style_item__2bXmD.style_selected__2btDT {
    color: #ffffff;
    background-color: #646464;
}
.style_imageLibrary__1e22e .style_LibraryContent__2NHts .style_sidebar__3YPhr .style_item__2bXmD {
    height: 44px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #3e3e3e;
    color: #ffffff;
    font-size: 14px;
    position: relative;
}
.style_imageLibrary__1e22e.style_mall__uI2xp .coco-dialog-content {
    width: calc(100vw - 120px);
    height: calc(100vh - 60px);
    max-height: 800px;
    max-width: 1400px;
    min-height: 600px;
    min-width: 1120px;
    padding: 0;
    overflow: hidden;
    background: #4b4b4b;
    display: flex;
    flex-direction: column;
}
.style_imageMallItem__mA9hN {
    position: relative;
    width: 146px;
    height: 192px;
    background: #383838;
    border-radius: 8px;
    border: 1px solid #818181;
    padding: 8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.style_imageMallItem__mA9hN .style_infoArea__kyZRn .style_nameArea__1q0gL {
    font-size: 14px;
    color: #ffffff;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.RightSideMenu_wrapper__pn2lJ .RightSideMenu_active__R-hSf {
    color: #fff;
    background-color: #5f5f5f;
}
.style_ImageDragContainer__23PNf .style_ImageLayoutEmpty__3Mn_3 h5 {
    margin-bottom: 11px;
    font-size: 14px;
    font-weight: 600;
    color: #d6d6d6;
}
.ZoomBox_wrapper__2CMDz {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 18px;
    height: 36px;
    padding: 6px 0;
    color: #505050;
    background-color: #5a5a5a;
    border-radius: 8px;
    border: 1px solid #434343;
    transition: right .3s ease;
}.ZoomBox_cleanUpWrapper__13NlT, .ZoomBox_undoRedoWrapper__sqYcD, .ZoomBox_zoomWrapper__u-SDs {
    background-color: #5a5a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
}
.ZoomBox_percent__3PBtm {
    font-size: 12px;
    text-align: center;
    width: 34px;
    color: #ffffff;
    padding: 0 2px;
}
.style_footer__ibuAG svg {
    fill: #ffffff;
}.RightSideMenu_wrapper__pn2lJ .RightSideMenu_normal__jAKu2:hover {
    background-color: #9e9da1;
}
.WidgetList_doubleColumn__34XFq .WidgetList_widgetItem__14O1V {
    display: flex;
    flex-direction: row;
    cursor: grab;
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 14px;
    vertical-align: middle;
    border-radius: 5px;
    border: 1px solid #393939;
    color: #d7d7d7;
    background-color: #4d4d4d;
    transition: box-shadow .1s ease-in-out,-webkit-transform .1s ease-in-out;
    transition: transform .1s ease-in-out,box-shadow .1s ease-in-out;
    transition: transform .1s ease-in-out,box-shadow .1s ease-in-out,-webkit-transform .1s ease-in-out;
    align-items: center;
    justify-content: center;
}
.WidgetList_tabContainer__2FoCh .WidgetList_tabNav__aT0g3 .WidgetList_activeTab__GNm6q:after, .WidgetList_tabContainer__2FoCh .WidgetList_tabNav__aT0g3 .WidgetList_activeTab__GNm6q:before {
    position: absolute;
    bottom: 0;
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 100%;
    box-shadow: 0 0 0 20px #1f1f1f;
}
.PreviewArea_dragBar__KyFSw {
    position: absolute;
    right: -1px;
    height: 100%;
    width: 10px;
    cursor: url(https://creation.codemao.cn/coconut/web/1.16.0/static/media/drag-x.2b732b15.svg) 8 8,col-resize;
    z-index: 25;
    border-right: 0;
}
.coco-dropdown-overlay {
    position: absolute;
    top: 100%;
    width: 124px;
    background: #393939;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
    border-radius: 6px;
    transition: opacity .1s ease-out;
}
.coco-upload-button .coco-upload-button-content {
    cursor: pointer;
    font-size: 14px;
    color: #bababa;
    white-space: nowrap;
}
.Header_line__3oubQ {
    height: 1px;
    margin: 0 10px;
    background: #565656;
}
.coco-menu-item:hover {
    background: #505050;
}
.DataWatch_wrapper__1qka4 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #393939;
}
.DataWatch_tabsWrapper__3p-uX {
    height: 42px;
    line-height: 41px;
    background: #393939;
    border-bottom: 0;
}
.DataWatch_tabsWrapper__3p-uX .DataWatch_tabs__1KvE- .DataWatch_selected__2NPbC {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 2px solid #6e4ff4;
}
.DataWatch_tabsWrapper__3p-uX .DataWatch_tabs__1KvE- .DataWatch_tab__2Fyre {
    width: 64px;
    text-align: center;
    margin: 0;
    color: #a4a4a4;
}
.ConsolePanel_container__sYMKI {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #393939;
}
.ConsolePanel_container__sYMKI .ConsolePanel_header__WFXUe {
    height: 42px;
    width: 100%;
    background: #393939;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ConsolePanel_container__sYMKI .ConsolePanel_header__WFXUe .ConsolePanel_title__3ehUV {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.style_labelWrapper__1or3P span {
    color: #d7d7d7;
}
.EditArea_toolboxMask__38J9F {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 180px;
    width: 319px;
    background: none;
    opacity: .92;
    z-index: 2;
    transition: all .3s;
}
    </style>`
    // Your code here...
})();