13.1. Gerenciador de Estilo
The Style Manager is the place where you can manage and create
generic style items. These are symbols, color ramps, text formats or label
settings that can be used to symbolize features, layers or print layouts.
They are stored in the
symbology-style.db database under the active
user profile and shared with all the project files
opened with that profile.
Style items can also be shared with others thanks to the export/import
capabilities of the Style Manager dialog.
You can open that modeless dialog either:
The Style Manager dialog displays in its center a frame with previewed items organized into tabs:
All for a complete collection of point, linear and surface symbols and label settings as well as predefined color ramps and text formats;
Text format to manage text formats, which store the font, color, buffers, shadows, and backgrounds of texts (i.e. all the formatting parts of the label settings, which for instance can be used in layouts);
Label settings to manage label settings, which include the text formats and some layer-type specific settings such as label placement, priority, callouts, rendering…
For each family of items, you can organize the elements into different categories, listed in the panel on the left:
Favoritos: exibido por padrão ao configurar um item, ele mostra um conjunto extensível de itens;
Todos: lista todos os itens disponíveis para o tipo ativo;
Tags: shows a list of labels you can use to identify the items. An item can be tagged more than once. Select a tag in the list and the tabs are updated to show only their items that belong to it. To create a new tag you could later attach to a set of items, use the Add Tag… button or select the Add Tag… from any tag contextual menu;
Smart Group: a smart group dynamically fetches its symbols according to conditions set (see eg, Fig. 13.2). Click the Add Smart Group… button to create smart groups. The dialog box allows you to enter an expression to filter the items to select (has a particular tag, have a string in its name, etc.). Any symbol, color ramp, text format or label setting that satisfies the entered condition(s) is automatically added to the smart group.
Tags and smart groups are not mutually exclusive: they are simply two different ways to organize your style elements. Unlike the smart groups that automatically fetch their belonged items based on the input constraints, tags are filled by the user. To edit any of those categories, you can either:
select the items, right-click and chooseand then select the tag name or create a new tag;
select the tag and press. A checkbox appears next to each item to help you select or deselect it. When selection is finished, press .
select the smart group, press Smart Group Editor dialog. This option is also available in the contextual menu of the smart group.and configure a new set of constraints in the
As seen earlier, style elements are listed under different tabs whose contents depend on the active category (tag, smart group, favorites…). When a tab is enabled, you can:
Note that the All tab provides access to these options for every type of item.
Right-clicking over a selection of items also allows you to:
Adicionar aos favoritos;
guilabel:Remover dos favoritos;
and select the appropriate tag or create a new one to use; the currently assigned tags are checked;
Clear Tags: detaching the symbols from any tag;
guilabel:Editar Item: aplica-se ao item sobre o qual você clica com o botão direito do mouse;
Paste Item …: pasting to one of the categories of the style manager or elsewhere in QGIS (symbol or color buttons)
guilabel:Exportar Símbolo(s) Selecionado(s) como PNG… (somente disponível com símbolos);
guilabel:Exportar Símbolo(s) Selecionado(s) como SVG… (somente disponível com símbolos);
The Color ramp tab in the Style Manager dialog helps you preview different color ramps based on the category selected in the left panel.
Gradient: given a start and end colors, generate a color ramp which can be continuous or discrete. With double-clicking the ramp preview, you can add as many intermediate color stops as you want.
Color presets: allows to create a color ramp consisting of a list of colors selected by the user;
Random: creates a random set of colors based on range of values for Hue, Saturation, Value and Opacity and a number of colors (Classes);
Catalog: ColorBrewer: a set of predefined discrete color gradients you can customize the number of colors in the ramp;
or Catalog: cpt-city: an access to a whole catalog of color gradients to locally save as standard gradient. The cpt-city option opens a new dialog with hundreds of themes included ‘out of the box’.
Easily adjust the color stops of the gradient color ramp
Double-clicking the ramp preview or drag-and-drop a color from the color spot onto the ramp preview adds a new color stop. Each color stop can be tweaked using the Seletor de Cor widgets or by plotting each of its parameters. You can also reposition it using the mouse, the arrow keys (combine with Shift key for a larger move) or the Relative position spinbox. Pressing Delete stop as well as DEL key removes the selected color stop.
Marker Legend Patch Shape…: to use with point geometries.
Line Legend Patch Shape…: to use with line geometries.
Fill Legend Patch Shape…: to use with polygon geometries.
Todas as três opções mostrarão a mesma caixa de diálogo.
Only the shape type and displayed legend patch shapes will differ regarding to the chosen geometry type. The following options will be available:
Shape: define the shape of the legend patch shape as a WKT string. Single and multipart geometries may be used, but no GeometryCollection.
|caixa de seleção| Manter a proporção
When the new Shape is defined you can Save Legend Patch Shape… or press OK, which will both lead to the same dialog.
Aqui você tem que escolher um nome, etiquetas para descrever a forma e se ela deve ser adicionada aos favoritos.
If you press Save…, the shape is added to the list and you are directed back to the New Legend Patch Shape dialog to keep creating new shapes.