Skip to content
项目

关于

The ultimate GUI extension for JUCE

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

JIVE

License: MIT

CMake C Plus Plus JUCE

Tests Status Test Coverage

GitHub Repo stars Contributors Last Commit

About

JIVE completely overhauls the frontend development experience for JUCE projects by providing a high-level API for building and styling UIs.

Unlike in JUCE, where we build UIs entirely in C++, JIVE interprets XML files for layouts, and JSON files for styles similar to the way browsers load HTML and CSS. With the introduction of Hot Reloading in JIVE 2.0, it's now easier than ever to build UIs for audio applications and plugins.

Layouts

JIVE

JIVE parses XML files to juce::ValueTree and builds a hierarchy of juce::Components that mirror the tree, responding to changes.

Flex, Grid, and Block layouts allow for responsive designs, while the Box Model adds margins, padding, borders, and rounded corners to all components.

Templates are used to reuse views inside other views, and Snippets allow custom content to be passed to Templates.

See jive_layouts/README.md for a technical overview of layouts, and see docs/guides/02-Templates.md to learn how to use templates.

Styles

JIVE

JSON documents add styling rules for components. Selectors are used to specify which rules apply to which components. ID, Type, class, and pseudo-class selectors are all support. Selectors can also be combined and nested.

Tokens are specified in the root object to reuse values throughout the style sheet.

Style sheets can import other style sheets to combine and reuse rules across projects.

See jive_style_sheets/README.md for a technical overview of style sheets, and see docs/guides/03-Advanced Styling.md to learn how to create powerful style sheets, and docs/guides/06-Advanced Widget Design.md to learn how to use custom widgets.

:fire: Hot Reloading

JIVE

JIVE watches XML and JSON files for changes and instantly applies them to the UI.

The jive_sources() CMake function lists the files JIVE should use. Debug builds hot-reload them from disk. Release builds embed them in the binary as a zip file. Embedded files are fixed at build time.

See the examples to try hot reloading and to see jive_sources() in use.

Native Windows

On macOS, windows created with JIVE default to having unified title bars. On Windows, the title bar colour will match the background colour by default.

JIVE supports native "materials" on macOS and Windows with the "glass" and "tinted" background keywords. See https://developer.apple.com/design/human-interface-guidelines/materials and https://learn.microsoft.com/en-us/windows/apps/design/signature-experiences/materials for details.

Localisation

JIVE loads and manages .strings files to translate text in your app. Set the "lang" property on a component to change its language.

Auto Parameter Attaching

Use jive::Interpreter::autoAttachParameters() to have JIVE automatically look for matching audio parameters for the widgets you add to your views.

Getting Started

JIVE contains several JUCE-module-formatted C++ libraries. You should add them in the same way you do any other 3rd-party JUCE module.

CMake

The simplest way to add JIVE to your CMake is using CPM:

CPMAddPackage("gh:ImJimmi/JIVE#main")

Alternatively, use FetchContent or submodules.

Then, link the jive_layouts module to your target:

target_link_libraries(my_juce_project
PRIVATE
    jive::jive_layouts
)

The other JIVE modules are dependencies of jive_layouts so there's no need to list them all.

Projucer

Click the "+" icon in the "Modules" panel and choose "Add a module from a specified folder...". Add all of the JIVE modules from wherever you cloned/downloaded JIVE to.

Examples & Guides

The examples/ folder has several projects that demonstrate each of the major features of JIVE. There is also a demo synth plugin, BoaBass.

BoaBass screenshot

The docs/guides/ folder has several written guides to help you get started with JIVE.

Contributing

All contributions are welcome, but first:

To submit a change:

  • Fork JIVE
  • Create a new branch in your fork with your new feature, bug fix, etc.
  • Build and test your changes by enabling the JIVE_BUILD_EXAMPLES, JIVE_BUILD_TEST_RUNNER, JIVE_BUILD_BENCHMARKS, JIVE_ENABLE_PLUGINVAL, and JIVE_ENABLE_PROJUCER_PROJECTS cmake settings
  • Format your code with ClangFormat
  • Open a PR to merge your branch into JIVE's main branch
  • Link your PR on the JUCE forum thread (recommended)

Your code may be rewritten, reformatted, or refactored to match the style and standards of the rest of the codebase.

探索相关项目

加载中…