Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-12UI: Remove Hard-coded Default Font SizeHarley Acheson
Default text output routines (which do not specify a size) will now use Text Style point size. Differential Revision: https://developer.blender.org/D9107 Reviewed by Brecht Van Lommel
2020-08-26Cleanup: use const variables in interface codeCampbell Barton
2020-08-19UI Code Quality: Use LISTBASE_FOREACH in interface directoryHans Goudey
I only skipped a few loops in the monstrous ui_handle_menu_event function. Also, I only changed variable names where necessary to prevent redeclarations. Differential Revision: https://developer.blender.org/D8586
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-06-06UI: Ability to Print Bold and ItalicsHarley Acheson
Adds the ability to print text in bold or italics style, synthesized from a single base UI font. Differential Revision: https://developer.blender.org/D7893 Reviewed by Brecht Van Lommel
2020-05-12Cleanup: remove DNA_screen_types.h, use struct qualifierCampbell Barton
Also remove draw-manager & depsgraph headers in interface_icons.c Change this in 2.83 to prevent merge issues in master with interface_intern.h header.
2020-04-14UI: improve menu search with dimmed menu prefixCampbell Barton
- Show dimmed text for the menu entries leading up to the menu item. - Show icons between the menu text and menu item. - Use unicode right pointing triangle instead of arrow.
2020-04-14Cleanup: pass font drawing x/y offset arguments as int'sCampbell Barton
Internally these values are ints.
2020-03-25UI: remove non-unicode font and simplify default font loading codeBrecht Van Lommel
There is no need to have another font embedded in the Blender executable, we can assume the bundled font exists. In the future we may provide a fallback if the font specified by the user in the preferences is missing a character, but that can use our bundled international font. Differential Revision: https://developer.blender.org/D6854
2020-03-25UI: always use international fontBrecht Van Lommel
This means Blender can display more text correctly without having to enable user interface translation. Previously the quality of the font was lower, but that has been fixed now. The font files have now been ungzipped, which results in faster file loading as Freetype can read only the parts of the file that it needs. Blender download size should not increase since the release package is compressed. This includes improvements for Cyrillic characters from the latest DejaVu Sans fonts from D6960, contributed by Harley Acheson. Fixes T74097. Differential Revision: https://developer.blender.org/D6854
2020-03-15Cleanup: use 'const' style argumentCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-15Fix T62594: Truncated text in UIJacques Lucke
Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D4518
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-04Cleanup: use typed unsigned intsCampbell Barton
2019-01-04UI: refactor layout vars out of uiFontStyleCampbell Barton
Word wrap and alignment layout args only used by UI_fontstyle_draw were vars in uiFontStyle. These were written to before drawing, so better pass as an argument. Pass uiFontStyle & uiWidgetColors as const args.
2018-11-20Cleanup: unused args, indentationCampbell Barton
2018-11-03UI: Fix white shadow when resetting to defaults.Pablo Vazquez
Resetting the theme to default would set the shadow brightness to 1.0f, which was used as emboss when we used dark text on brighter backgrounds. Now that we use white labels, bright shadows just makes all text fuzzy.
2018-10-11UI: tweak vertical centering of text in buttons.Brecht Van Lommel
This effectively moves up the text by one pixel to make it look more centered in the button and relative to the icon.
2018-08-21Merge branch 'master' into blender2.8Brecht Van Lommel
2018-08-21UI: disable new text hinting from D3201 by default for now.Brecht Van Lommel
This changes the text hinting setting to be an enum with options Auto / None / Slight / Full. The default is Auto which currently disables hinting. The hinting was tested with a new FreeType version, but this is not what is used on the buildbots an official release environment, and the fonts look quite bad because of that. Once FreeType has been upgraded we can change the default. Even then the results are not ideal, perhaps due to missing subpixel positioning and linear color blending support in BLF.
2018-07-31Merge branch 'master' into blender2.8Campbell Barton
2018-07-31BLF: replace global aa pref w/ monochrome flagCampbell Barton
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
2018-07-31Merge branch 'master' into blender2.8Campbell Barton
2018-07-31UI: use text hinting (now user preference)Campbell Barton
D3201 by @ambient w/ edits not to impact fonts used for rendering (only change display for UI text).
2018-06-29Merge branch 'master' into blender2.8Campbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-05-23Merge branch 'master' into blender2.8Campbell Barton
2018-05-23Cleanup: strip trailing space from interface filesCampbell Barton
2017-04-07OpenGL: refactor UI_draw_roundbox functionsMike Erwin
Each function takes a bool (filled vs outline) and a color. We already had multiple ways of passing color in; these are still here. Special variant for anti-aliasing. - took GLenum out of interface - removed UI_RB_ALPHA flag (only one place really used it) - use exact vertex count - removed redundant state changes (BLEND, LINE_SMOOTH)
2017-02-10Remove most (maybe all?) remaining yellow textJulian Eisel
Decided to request the text color as argument for UI_fonstyle_draw functions, rather than keeping it being another state to keep track of.
2016-11-22Use const for color array argumentsJulian Eisel
2016-11-22Fix missing conversion of uchar color to floatJulian Eisel
Decided to just pass float [4] args, so no type conversion is needed at all.
2016-11-15blender 2.8: Opengl: UI_draw_roundboxMike Erwin
all is in the title too.. Reviewers: merwin Reviewed By: merwin Subscribers: Blendify, Severin Tags: #bf_blender_2.8, #opengl_gfx Maniphest Tasks: T49043 Differential Revision: https://developer.blender.org/D2337
2016-06-28Fix T48753: VSE must restart for international fontsCampbell Barton
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-02-15Fix T47422: Factory startup loads too many fontsCampbell Barton
2015-12-01UI: mono-space font user preferenceCampbell Barton
2015-09-19UI: word-wrap for tooltips, broke text alignmentCampbell Barton
This wasn't visible with default settings, but caused problems w/ pie-menu's & manually adjusted theme font-size. Now only draw from the bound-box top w/ word-wrap enabled.
2015-09-18UI: word-wrap support for tooltipsCampbell Barton
Tooltips will automatically wrap when exceeding UI_TIP_MAXWIDTH.
2015-08-28Fix UI font drawing getting width w/o kerningCampbell Barton
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-05-31UI: comments (doxygen tweaks)Campbell Barton
2015-05-15Fix some issues found by Coverity ScanJulian Eisel
Some of them are just brain dead code, some are potential bugs.
2015-01-31Compiler warning: double-promotionCampbell Barton