mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 01:25:36 -05:00
Fix properties container and overflow actionbar styles (#10180)
* Fix styles * Undo bold
This commit is contained in:
@@ -13,6 +13,8 @@ import * as azdata from 'azdata';
|
||||
import { ComponentBase } from 'sql/workbench/browser/modelComponents/componentBase';
|
||||
import { IComponent, IComponentDescriptor, IModelStore } from 'sql/platform/dashboard/browser/interfaces';
|
||||
import { PropertiesContainer, PropertyItem } from 'sql/base/browser/ui/propertiesContainer/propertiesContainer.component';
|
||||
import { registerThemingParticipant, IColorTheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
|
||||
import { PROPERTIES_CONTAINER_PROPERTY_NAME, PROPERTIES_CONTAINER_PROPERTY_VALUE } from 'vs/workbench/common/theme';
|
||||
|
||||
@Component({
|
||||
selector: `modelview-properties-container`,
|
||||
@@ -54,3 +56,22 @@ export default class PropertiesContainerComponent extends ComponentBase implemen
|
||||
this._propertiesContainer.propertyItems = newValue;
|
||||
}
|
||||
}
|
||||
|
||||
registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
|
||||
|
||||
const propertyNameColor = theme.getColor(PROPERTIES_CONTAINER_PROPERTY_NAME);
|
||||
if (propertyNameColor) {
|
||||
collector.addRule(`
|
||||
modelview-properties-container .propertyName,
|
||||
modelview-properties-container .splitter {
|
||||
color: ${propertyNameColor}
|
||||
}`);
|
||||
}
|
||||
|
||||
const propertyValueColor = theme.getColor(PROPERTIES_CONTAINER_PROPERTY_VALUE);
|
||||
if (propertyValueColor) {
|
||||
collector.addRule(`modelview-properties-container .propertyValue {
|
||||
color: ${propertyValueColor}
|
||||
}`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user